sshaw / git-link

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

Invalid Link When In Detach Head State & git-link-use-commit is nil #68

Closed sshaw closed 3 months ago

sshaw commented 4 years ago

If we have no branch and git-link-use-commit is nil we'll get an empty path segment, e.g., path//foo. Under these circumstances we should should signal a "cannot figure out what to link to" error and not return a link.

sshaw commented 3 months ago

Related to #14 and fixed by #127