diff --git a/connect.c b/connect.c index ea810c4df9..9f51e8dcc8 100644 --- a/connect.c +++ b/connect.c @@ -525,8 +525,7 @@ pid_t git_connect(int fd[2], char *url, const char *prog, int flags) ) { protocol = PROTO_SSH; *path++ = '\0'; - } else - path = host; + } } else path = end;