mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-26 03:42:28 +00:00
Trim leading colon from ssh repository path
This commit is contained in:
parent
ef6389ad50
commit
fbabe855ad
@ -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, ':');
|
||||||
|
repo++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!repo) {
|
if (!repo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user