From 9ea357f336da08b97617b3bdd9c008fd6382f38f Mon Sep 17 00:00:00 2001 From: Yuxuan 'fishy' Wang Date: Thu, 28 Aug 2014 21:16:56 -0700 Subject: [PATCH] Allow projects without path attribute in manifest. In such case, we use the name attribute as the default value of path. Change-Id: I53fa312d6b64c6eb2240f08af7d1d60cea99192a Signed-off-by: Yuxuan 'fishy' Wang --- .../src/org/eclipse/jgit/gitrepo/RepoCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ca15496163..50701eae2e 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(); -- 2.39.5