sshaw / git-link

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

Cannot parse tramp filenames #49

Closed cswarth closed 6 years ago

cswarth commented 6 years ago

It would be great if this package could deal with tramp-mode filenames that look like /ssh:aws-dev:/home/ubuntu/somedir/main.go When I called git-link I get the message Can’t figure out what to link to

sshaw commented 6 years ago

Yes, very good idea.

The problem seems to be with running git rev-parse --show-top-level. Your buffer is remote, but this is ran locally.

Any idea how to fix?

sshaw commented 6 years ago

It looks like using start-file-process will run on the remote server when buffer is a tramp file.

juergenhoetzel commented 6 years ago

Had the same issue. Proposed fix: #54