sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
399 stars 74 forks source link

Trailing slash quirk #99

Open abcdw opened 2 years ago

abcdw commented 2 years ago

In case there is a trailing slash at the end of the remote url (https://git.savannah.gnu.org/git/guix.git/), the link generated by git-link will look like:

https://git.savannah.gnu.org/cgit/guix.git/.git/tree/TODO?h=587fbb48be8ee0c76c77f14fd835e79f33752cb1#n76

instead of: https://git.savannah.gnu.org/cgit/guix.git/tree/TODO?h=587fbb48be8ee0c76c77f14fd835e79f33752cb1#n76

Using https://git.savannah.gnu.org/git/guix.git solves the problem.

Not a big deal, just to let you and maybe other people know.