|
|
@ -264,7 +264,11 @@ public class RepoCommand extends GitCommand<RevCommit> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Set base URI of the pathes inside the XML |
|
|
|
* Set base URI of the paths inside the XML. This is typically the name of |
|
|
|
|
|
|
|
* the directory holding the manifest repository, eg. for |
|
|
|
|
|
|
|
* https://android.googlesource.com/platform/manifest, this should be
|
|
|
|
|
|
|
|
* /platform (if you would run this on android.googlesource.com) |
|
|
|
|
|
|
|
* or https://android.googlesource.com/platform elsewhere.
|
|
|
|
* |
|
|
|
* |
|
|
|
* @param uri |
|
|
|
* @param uri |
|
|
|
* @return this command |
|
|
|
* @return this command |
|
|
@ -448,9 +452,10 @@ public class RepoCommand extends GitCommand<RevCommit> { |
|
|
|
public RevCommit call() throws GitAPIException { |
|
|
|
public RevCommit call() throws GitAPIException { |
|
|
|
try { |
|
|
|
try { |
|
|
|
checkCallable(); |
|
|
|
checkCallable(); |
|
|
|
if (uri == null || uri.length() == 0) |
|
|
|
if (uri == null || uri.length() == 0) { |
|
|
|
throw new IllegalArgumentException( |
|
|
|
throw new IllegalArgumentException( |
|
|
|
JGitText.get().uriNotConfigured); |
|
|
|
JGitText.get().uriNotConfigured); |
|
|
|
|
|
|
|
} |
|
|
|
if (inputStream == null) { |
|
|
|
if (inputStream == null) { |
|
|
|
if (manifestPath == null || manifestPath.length() == 0) |
|
|
|
if (manifestPath == null || manifestPath.length() == 0) |
|
|
|
throw new IllegalArgumentException( |
|
|
|
throw new IllegalArgumentException( |
|
|
|