]> source.dussan.org Git - jgit.git/commitdiff
Allow projects without path attribute in manifest. 18/32518/1
authorYuxuan 'fishy' Wang <fishywang@google.com>
Fri, 29 Aug 2014 04:16:56 +0000 (21:16 -0700)
committerYuxuan 'fishy' Wang <fishywang@google.com>
Fri, 29 Aug 2014 04:16:56 +0000 (21:16 -0700)
In such case, we use the name attribute as the default value of path.

Change-Id: I53fa312d6b64c6eb2240f08af7d1d60cea99192a
Signed-off-by: Yuxuan 'fishy' Wang <fishywang@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

index ca154961632781c84fef881cb7a2dbc41fa1fbfc..50701eae2e5b83d398f09c68e5f89ee0d461ec5e 100644 (file)
@@ -288,7 +288,10 @@ public class RepoCommand extends GitCommand<RevCommit> {
                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<String>();