Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Support git+ssh:// and ssh+git:// URL
author
Linus Torvalds
<torvalds@osdl.org>
Sat, 15 Oct 2005 00:14:56 +0000
(17:14 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 15 Oct 2005 00:14:56 +0000
(17:14 -0700)
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>
connect.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
01eea6f
)
diff --git
a/connect.c
b/connect.c
index b157cf1cc718bbd7b8f4598b2dcb3a7ba92bb8e3..247f02fb4cb3b3f96017c45427dfafd077692ebd 100644
(file)
--- 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);
}