-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve hostname set in ssh config #53
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Usually, I configure access to git hosts through ssh config. This makes it easier to set different keys for my work and personal projects, as well as it simplifies setup remote hosts.
However, the current parser expects remote uri to be set as
https://<hostname>/<user>/<repo>.git
, orssh:https://git@<hostname>/<user>/<repo>.git
, orgit@<hostname>:<user>/<repo>.git
, and in my case, the remote uri is set as<alias>:<user>/<repo>.git
, which causes the following error:Describe the solution you'd like
It's possible to resolve the hostname using
ssh -G <alias>
, which returns a parseable result:Describe alternatives you've considered
gitlinker
could have a hook for the parser, making it possible to override the default implementation.Additional context
--
The text was updated successfully, but these errors were encountered: