From 24ab79ccaf5e3e8b3c2ef612afc398126b7c2d93 Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Wed, 10 Jun 2015 15:11:39 -0700 Subject: [PATCH] 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 --- org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java index 2b800e6c9..5ea839874 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java @@ -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) {