@matheusbsbs / matheus-bagliano / commits / c05186cc38
Fork 0

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>

Linus Torvalds committed Oct 14, 2005 at 17:14 UTC c05186cc38ca4605bff1f275619d7d0faeaf2fa5
1 file changed +4
connect.c
+4
@@ -284,6 +284,10 @@ static enum protocol get_protocol(const char *name)
284 return PROTO_SSH;
285 if (!strcmp(name, "git"))
286 return PROTO_GIT;
287 + if (!strcmp(name, "git+ssh"))
288 + return PROTO_SSH;
289 + if (!strcmp(name, "ssh+git"))
290 + return PROTO_SSH;
291 die("I don't handle protocol '%s'", name);
292 }
293