git-blame
git-blame copied to clipboard
custom commit url template string doesn't work if remote is not named 'origin'
I have only one remote, named 'gerrit' which points to my Gerrit code review git repo. We also have a cgit connected to this which provides an HTTP interface to the repo. I utilized the custom url in settings: 'https://
I tried changing the name on my remote to 'origin', where it worked fine (and correctly opened my browser to the specified commit).
I'll add a user setting for a custom remote name if origin fails. That should solve your problem right?
Yep, that'd work fine. Thanks.
Short term I will add this setting in the next day or two.
I have another question though...would this be across ALL your projects? Do you always have your main remote named 'gerrit'? Or is this only for a project here or there.
Long run I'm thinking this should be project specific. Having a discussion on how best to make this possible in #18 potentially using git config or git-blame for atom config that is checked into the project. Thoughts?
The remote is not always named gerrit. There is also times where I have multiple remotes for the same project. Perhaps a way to specify which remote I want to use for blame? (In my case they are very often mirrors and blame would show same result regardless of which remote it used).