Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RemoteAddOp.groovy #108

Closed
wants to merge 2 commits into from
Closed

Conversation

rajeevbo
Copy link

Comment - If remote with given name already exists, its URIs are replaced with newly specified ones.

Is incorrect, doesn't actually replace with new ones.

Comment - If remote with given name already exists, its URIs are replaced with newly specified ones.

Is incorrect, doesn't actually replace with new ones.
fixed find syntax
@ajoberstar
Copy link
Owner

In this case I think the issue is that the Javadoc is incorrect, not that the behavior should have matched the Javadoc. On the CLI, remote add fails if the remote already exists. I think it makes more keep that same behavior here. I'll update the comment in the javadoc, and will be closing this PR.

@ajoberstar ajoberstar closed this Apr 22, 2016
ajoberstar added a commit that referenced this pull request Apr 22, 2016
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants