not compatible with git remote using ssh config
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: v3.40.2
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.64.2-1644445741
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: GitLab Community Edition 14.7.2
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