]> source.dussan.org Git - jgit.git/commitdiff
Correct comment on CloneCommand.setRemote method. 64/3964/2
authorKevin Sawicki <kevin@github.com>
Fri, 5 Aug 2011 18:02:10 +0000 (11:02 -0700)
committerKevin Sawicki <kevin@github.com>
Fri, 5 Aug 2011 18:02:10 +0000 (11:02 -0700)
The previous comment stated that the value set was used
to keep track of the branch in the remote repository
which was incorrect.

Updated the method comment to match the format used
for the PushCommand.setRemote and FetchCommand.setRemote
methods.

Change-Id: I11b81eb3125958af29247b485da56fd88c3bfdf5
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

index cfbcbf1b6d2bc61c03a5dfadd245e2ef927ee358..29dd6e90c3427ee605d648c6cb59ff8d7c960eef 100644 (file)
@@ -301,8 +301,13 @@ public class CloneCommand implements Callable<Git> {
        }
 
        /**
+        * The remote name used to keep track of the upstream repository for the
+        * clone operation. If no remote name is set, the default value of
+        * <code>Constants.DEFAULT_REMOTE_NAME</code> will be used.
+        *
+        * @see Constants#DEFAULT_REMOTE_NAME
         * @param remote
-        *            the branch to keep track of in the origin repository
+        *            name that keeps track of the upstream repository
         * @return this instance
         */
        public CloneCommand setRemote(String remote) {