Commit a6ee166111f2c76ad755b55925a46a04008f2402

Vicent Martí 2013-09-11T16:46:39

Merge pull request #1839 from isaac/ssh-repository-invalid SSH: Clone fails with errors: ERROR: Repository invalid & Early EOF

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..bf62bd1 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, ':');
+		if (repo) repo++;
 	}
 
 	if (!repo) {