summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-10-14 17:14:56 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-14 17:14:56 -0700
commitc05186cc38ca4605bff1f275619d7d0faeaf2fa5 (patch)
tree61c8aadf76c811c297263ddcc9b8fe38a317315b /connect.c
parent01eea6f355f35098cc5038e94622e30ed31a9267 (diff)
downloadgit-c05186cc38ca4605bff1f275619d7d0faeaf2fa5.tar.gz
Support git+ssh:// and ssh+git:// URL
It seemed to be such a stupid syntax. It's both what "ssh://" means, and it's what not specifying a protocol at _all_ means. But hey, since we already have two ways of saying "use ssh with pack-files", here's two more. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/connect.c b/connect.c
index b157cf1cc7..247f02fb4c 100644
--- a/connect.c
+++ b/connect.c
@@ -284,6 +284,10 @@ static enum protocol get_protocol(const char *name)
return PROTO_SSH;
if (!strcmp(name, "git"))
return PROTO_GIT;
+ if (!strcmp(name, "git+ssh"))
+ return PROTO_SSH;
+ if (!strcmp(name, "ssh+git"))
+ return PROTO_SSH;
die("I don't handle protocol '%s'", name);
}