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

Fix git-blame error on url missing .git #6

Merged
merged 3 commits into from
May 29, 2014
Merged

Fix git-blame error on url missing .git #6

merged 3 commits into from
May 29, 2014

Conversation

nshtg
Copy link

@nshtg nshtg commented May 29, 2014

You can clone a git repo from urls without the .git at the end:
git clone git@github.com:alexcorre/git-blame

This results in git-blame throwing an error on clicking the hash to open in browser:

gitblame

This patch fixes that error.

@alexcorre
Copy link
Owner

Thanks @frk1705 for catching this. I'll pull it in and publish an update if you can add a quick unit test for this case. Please add a test to this file.

@nshtg
Copy link
Author

nshtg commented May 29, 2014

Is one spec enough?

@alexcorre
Copy link
Owner

One more to ensure that it works with a repo with dash in the name and we should be good.

@nshtg
Copy link
Author

nshtg commented May 29, 2014

Btw, is there a reason that your .gitignore includes node_modules/* instead of node_modules/?

@alexcorre
Copy link
Owner

not sure will fix. i'll also remove the ignore except git-tools rule there. i had it as a submodule for a while.

alexcorre added a commit that referenced this pull request May 29, 2014
Fix git-blame error on url missing .git
@alexcorre alexcorre merged commit da5f90d into alexcorre:master May 29, 2014
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