and I do git clone gh:sshaw/git-link, open git-link/git-link.el and run M-x git-link, I get the error message No handler found for gh
This is because git-link--remote-url calls git config remote.{name}.url which returns the raw URL.
Instead it should be calling git remote get-url {name}, which resolves insteadOf directives.
Given my
~/.gitconfig
has:and I do
git clone gh:sshaw/git-link
, opengit-link/git-link.el
and runM-x git-link
, I get the error messageNo handler found for gh
This is because
git-link--remote-url
callsgit config remote.{name}.url
which returns the raw URL. Instead it should be callinggit remote get-url {name}
, which resolvesinsteadOf
directives.This version works for me: