Skip to content

not compatible with git remote using ssh config

Checklist

Summary

git remotes from ssh config file are not working.

Steps to reproduce

create a ssh host in .ssh/config like:

Host git
  Hostname myGitlab.de
  Port 1234
  User git
  IdentityFile .ssh/id_myGitlab

clone project using this host
git clone git:myGroup/myProject.git

What is the current bug behavior?

[error]: git remote "git:myGroup/myProject.git" could not be parsed
         AssertionError [ERR_ASSERTION]: git remote "git:myGroup/myProject.git" could not be parsed
[error]: Project "myGroup/myProject" was not found on "https://myGitlab.de" GitLab instance.

What is the expected correct behavior?

Parsing information from .ssh/config or ask for input / give option to fix it manually.

Relevant logs and/or screenshots

not needed

Possible fixes

  • parse .ssh/config
  • add some method to overwrite it
  • promt for manual overwrite of the uri (just for the extension)
Edited by david-bla