diff options
author | Sven Verdoolaege <skimo@liacs.nl> | 2005-06-17 10:13:18 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-19 10:48:41 -0700 |
commit | 44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79 (patch) | |
tree | 2ef46b192241a7ed126e0e50a2d53b2abd56ae77 /rsh.c | |
parent | b389237ae8cd04c2f53db52e37c02e30c63bcc89 (diff) | |
download | git-44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79.tar.gz |
[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 <skimo@liacs.nl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'rsh.c')
-rw-r--r-- | rsh.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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++) = ' '; |