Closed GoogleCodeExporter closed 9 years ago
Port 22 is a special case for the ssh url. It follows the shortened url
pattern documented here [1] and in-use on GitHub. I haven't tested SourceTree
with this URL pattern so if you tell me it doesn't work, then I believe you.
Native git clients should be able to clone that url just fine. I don't have a
problem forcing the ssh:// protocol to always be generated, but have you
confirmed that it fails? Or do you suspect that it fails?
[1]; https://www.kernel.org/pub/software/scm/git/docs/git-clone.html
Original comment by James.Mo...@gmail.com
on 9 Jun 2014 at 9:26
Referencing the GIT URLS section of the git-clone manual page indicates that
the protocol-less version is an alternative scp-like syntax. However, the
syntax needs to have a colon between the host and the path and not a slash as
in the ssh:// URL.
git clone user@server:path/to/repo -or-
git clone ssh://user@server/path/to/repo
I've confirmed that attempting a
git clone user@server/test.git
on Windows using Git 1.9.2 returns
fatal: repository 'user@server/test.git' does not exist
Either solution would be fine, though I think it would be a little easier to
just force "ssh://" in front of the URL rather than attempt the SCP syntax in
the special case of port 22.
Original comment by gib...@gmail.com
on 9 Jun 2014 at 9:49
Yeah, that would probably be safer for tooling integrations.
Original comment by James.Mo...@gmail.com
on 9 Jun 2014 at 9:53
Fix pushed to the release-v1.6.0 stabilizing branch.
Original comment by James.Mo...@gmail.com
on 9 Jun 2014 at 10:40
1.6.0 released.
Original comment by James.Mo...@gmail.com
on 17 Jun 2014 at 12:24
Original issue reported on code.google.com by
gib...@gmail.com
on 9 Jun 2014 at 8:55