From: Sven Verdoolaege Date: Fri, 17 Jun 2005 08:13:18 +0000 (+0200) Subject: [PATCH] ssh-push.c: Fix handling of ssh://host/path URLs X-Git-Tag: v0.99~247 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79;p=git.git [PATCH] ssh-push.c: Fix handling of ssh://host/path URLs Previous patch to fix host:path notation broke handling of ssh://host/path notation. Signed-off-by: Sven Verdoolaege Signed-off-by: Linus Torvalds --- diff --git a/rsh.c b/rsh.c index 5615c74e7..fe87e581d 100644 --- a/rsh.c +++ b/rsh.c @@ -41,6 +41,7 @@ int setup_connection(int *fd_in, int *fd_out, const char *remote_prog, snprintf(command, COMMAND_SIZE, "%s='%s' %s", GIT_DIR_ENVIRONMENT, path, remote_prog); + *path = '\0'; posn = command + strlen(command); for (i = 0; i < rmt_argc; i++) { *(posn++) = ' ';