]> git.proxmox.com Git - libgit2.git/commitdiff
Trim leading colon from ssh repository path
authorIsaac Kearse <isaac@kearse.co.nz>
Sun, 8 Sep 2013 02:11:08 +0000 (14:11 +1200)
committerIsaac Kearse <isaac@kearse.co.nz>
Sun, 8 Sep 2013 02:11:08 +0000 (14:11 +1200)
src/transports/ssh.c

index e0126a8fb4f8b210a9b82ea8e174e7d614cb85ba..47ea5ccf7aa22248eae218b850f4cbbc37f89fcd 100644 (file)
@@ -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) {