Commit a6ee1661 by Vicent Martí

Merge pull request #1839 from isaac/ssh-repository-invalid

SSH: Clone fails with errors: ERROR: Repository invalid & Early EOF
parents 7301cd60 b345026b
...@@ -51,6 +51,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url) ...@@ -51,6 +51,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
repo = strchr(url, '/'); repo = strchr(url, '/');
} else { } else {
repo = strchr(url, ':'); repo = strchr(url, ':');
if (repo) repo++;
} }
if (!repo) { if (!repo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment