andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

Gir URLs with transport protocol prefix is not working #103

Closed carlolars closed 4 years ago

carlolars commented 4 years ago

It doesen't work to clone a repo with a prefix in the URL sine it is interpreting everything after the first : as an absolute windows path that needs converting, for example:

>wslgit clone ssh://git@host.xz/path/to/repo.git
wslpath: //git@host.xz/path/to/repo.git
Cloning into 'ssh'...
ssh: Could not resolve hostname ssh: Name or service not known
fatal: Could not read from remote repository.