sshaw / git-link

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

Support not stripping ".git" from directory name #101

Open hendursaga opened 2 years ago

hendursaga commented 2 years ago

While trying to setup git-link for a cgit-powered repository (https://git.adrian.geek.nz/rhapsode.git), it wouldn't work, because https://github.com/sshaw/git-link/blob/master/git-link.el#L412-L414 strips ".git" from the directory name. As a workaround, I currently do something similar to git-link-savannah where I pass a modified dirname variable.