diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java index 53901f589..cd0bf33ea 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java @@ -346,7 +346,8 @@ public class CloneCommand extends TransportCommand { * @see URIish#getHumanishName() * * @param directory - * the directory to clone to + * the directory to clone to, or {@code null} if the directory + * name should be taken from the source uri * @return this instance * @throws IllegalStateException * if the combination of directory, gitDir and bare is illegal. @@ -362,7 +363,8 @@ public class CloneCommand extends TransportCommand { /** * @param gitDir - * the repository meta directory + * the repository meta directory, or {@code null} to choose one + * automatically at clone time * @return this instance * @throws IllegalStateException * if the combination of directory, gitDir and bare is illegal.