Browse Source

Correct comment on CloneCommand.setRemote method.

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>
stable-1.1
Kevin Sawicki 14 years ago
parent
commit
4ae9d47130
  1. 7
      org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

7
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

@ -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 * @param remote
* the branch to keep track of in the origin repository * name that keeps track of the upstream repository
* @return this instance * @return this instance
*/ */
public CloneCommand setRemote(String remote) { public CloneCommand setRemote(String remote) {

Loading…
Cancel
Save