Merge "Update bazlets to latest stable-2.14 to use 2.14.12 API" into stable-2.14
diff --git a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/GetFullPathCommand.java b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/GetFullPathCommand.java
index 4052f42..8a64dc9 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/GetFullPathCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/GetFullPathCommand.java
@@ -40,14 +40,12 @@
   private String projectName = "";
 
   private LocalDiskRepositoryManager localDiskRepositoryManager;
-  private ProjectCache projectCache;
 
   @Inject
   GetFullPathCommand(GitRepositoryManager grm, ProjectCache pc) {
     if (grm instanceof LocalDiskRepositoryManager) {
       localDiskRepositoryManager = (LocalDiskRepositoryManager) grm;
     }
-    projectCache = pc;
   }
 
   @Override
@@ -56,13 +54,9 @@
       throw new UnloggedFailure(1, "Command only works with disk based repository managers");
     }
     Project.NameKey nameKey = new Project.NameKey(projectName);
-    if (projectCache.get(nameKey) != null) {
-      stdout.println(
-          localDiskRepositoryManager
-              .getBasePath(nameKey)
-              .resolve(nameKey.get().concat(Constants.DOT_GIT_EXT)));
-    } else {
-      throw new UnloggedFailure(1, "Repository not found");
-    }
+    stdout.println(
+        localDiskRepositoryManager
+            .getBasePath(nameKey)
+            .resolve(nameKey.get().concat(Constants.DOT_GIT_EXT)));
   }
 }
diff --git a/src/main/resources/Documentation/cmd-get-path.md b/src/main/resources/Documentation/cmd-get-path.md
index a694ec9..fc913c2 100644
--- a/src/main/resources/Documentation/cmd-get-path.md
+++ b/src/main/resources/Documentation/cmd-get-path.md
@@ -13,12 +13,13 @@
 
 DESCRIPTION
 -----------
-Get the full path of an existing repository.
+Get the full path of a repository. If the repository does not exist, the path
+returned is the one where the repository would be if it gets created.
 
-OPTIONS
--------
+ARGUMENTS
+---------
 `repository`
-> Repository to show access for
+> Repository to get the full path for
 
 ACCESS
 ------