Skip to content

Commit

Permalink
Fixing Javadoc for RemoteAddOp behavior
Browse files Browse the repository at this point in the history
Comment currently is incorrect about the behavior of the class. #108 proposed changing the behavior to match the comment, but the CLI `git remote add <origin> <url>` will fail if the remote already exists. This class should follow that same behavior.
  • Loading branch information
ajoberstar committed Apr 22, 2016
1 parent 8fcad92 commit 04b288f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.eclipse.jgit.transport.URIish

/**
* Adds a remote to the repository. Returns the newly created {@link org.ajoberstar.grgit.Remote}.
* If remote with given name already exists, its URIs are replaced with newly specified ones.
* If remote with given name already exists, this command will fail.
*
* <p>To add remote.</p>
*
Expand Down

0 comments on commit 04b288f

Please sign in to comment.