summaryrefslogtreecommitdiff
path: root/src/transports/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transports/ssh.c')
-rw-r--r--src/transports/ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index 0b0d4bac3..8f5a7164b 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -66,6 +66,8 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
if (!git__prefixcmp(url, prefix_ssh)) {
url = url + strlen(prefix_ssh);
repo = strchr(url, '/');
+ if (repo && repo[1] == '~')
+ ++repo;
} else {
repo = strchr(url, ':');
if (repo) repo++;