gitpod
gitpod copied to clipboard
Problem with "ssh://" clone syntax
When I tried to clone a repository cached by the gp user, I got an issue with the "ssh://" syntax:
While git clone gp@hostname:reponame worked perfectly, the alternative commande git clone ssh://gp@hostname:22/reponame gives me the following error:
fatal: '/reponame' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Also neither:
$ git clone ssh://gp@hostname:22/~/reponame
Cloning into reponame...
invalid character ~ in git-upload-pack '~/reponame'
fatal: The remote end hung up unexpectedly
nor:
$ git clone ssh://gp@hostname:22/home/gp/reponame
Cloning into reponame...
invalid repo /home/gp/reponame
fatal: The remote end hung up unexpectedly
worked.
This could be problematic if you're connecting by SSH with a non standard port.