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
Remote SSH URL doesn't match HTTP URL for repo #37
Comments
Hi, thanks for trying it! Not having special logic to ignore The best way to resolve this problem is to update your repo's remote from:
To:
You can cd into the folder and run: git remote set-url origin git@github.com:mafredri/go-gaussian When I created this tool, I too had to update a few of my Go package repos that I cloned using |
Thanks for the response. I can appreciate your wish for precise comparison, correctness is usually good.
I do wonder if this is a real problem or not, however. How often would stripping the My guess is that quite a few people actually has the
It would say:
By matching the protocol used, the user would not be lead as much astray as to why the error is popping up. |
Thanks for your thoughtful comment @mafredri.
I agree that stripping an optional ".git" suffix when doing comparisons is likely harmless. I can't think of any issues it would cause. However, the reason I prefer to not do it is because it would add some additional complexity (however small) and imprecision. I see no benefit to supporting both ways, and so I'd rather support only one. Finally, the In the end, it's to keep it simpler, and allow less variability. Just like gofmt helps with keeping everyone's tabs vs spaces discussions at bay.
Great, please do. I will point any other people to this issue.
Got it. I completely agree with that, the error message is not as helpful as it can be, and it can be misleading/confusing. I will improve it. Thanks again for contributing. :) |
See #37 (comment) for rationale. Updates #37. Updates #38.
All valid points, and I tend to agree with you! Thanks for considering my proposal for the error message :). Here's a quick fix for anyone who might run into this: find $GOPATH/src/github.com -type d -name .git -exec sed -i '' -e 's/url = \(.*\)\(\.git\)$/url = \1/' {}/config \; |
I just tried out this tool and got to say it's pretty awesome! One thing I noticed though that it doesn't handle any of my
git@github.com:name/repo.git
URLs. For example:In my opinion this should be a match since they are essentially the same repo.
The text was updated successfully, but these errors were encountered: