gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Problem with "ssh://" clone syntax

Open MattKetmo opened this issue 13 years ago • 0 comments

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.

MattKetmo avatar Jun 30 '12 15:06 MattKetmo