Commit fbabe855ad6f9a7b2a50a54d0d826d2e65538154

Isaac Kearse 2013-09-08T14:11:08

Trim leading colon from ssh repository path

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index e0126a8..47ea5cc 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -51,6 +51,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
 		repo = strchr(url, '/');
 	} else {
 		repo = strchr(url, ':');
+		repo++;
 	}
 
 	if (!repo) {