Document CloneCommand.setURI(null)

call() throws InvalidRemoteException if uri == null, so there should
never be reason to leave the URI set to null.  Document this.

Change-Id: I7f2cdbe8042d99cf8a3c1a8c4c2dcb58c5b8c305
Signed-off-by: Jonathan Nieder <jrn@google.com>
This commit is contained in:
Jonathan Nieder 2015-06-10 15:11:39 -07:00
parent bbfd9b0e5f
commit 24ab79ccaf
1 changed files with 2 additions and 1 deletions

View File

@ -331,7 +331,8 @@ private RevCommit parseCommit(final Repository clonedRepo, final Ref ref)
/**
* @param uri
* the uri to clone from
* the URI to clone from, or {@code null} to unset the URI.
* The URI must be set before {@link #call} is called.
* @return this instance
*/
public CloneCommand setURI(String uri) {