diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java index ca1549616..50701eae2 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java @@ -288,7 +288,10 @@ public class RepoCommand extends GitCommand { Project(String name, String path, String revision, String remote, String groups) { this.name = name; - this.path = path; + if (path != null) + this.path = path; + else + this.path = name; this.revision = revision; this.remote = remote; this.groups = new HashSet();