Quellcode durchsuchen

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 <fishywang@google.com>
tags/v3.5.0.201409071800-rc1
Yuxuan 'fishy' Wang vor 9 Jahren
Ursprung
Commit
9ea357f336
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4
    1
      org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

+ 4
- 1
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java Datei anzeigen

@@ -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>();

Laden…
Abbrechen
Speichern