summaryrefslogtreecommitdiff
path: root/rsh.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@liacs.nl>2005-06-17 10:13:18 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 10:48:41 -0700
commit44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79 (patch)
tree2ef46b192241a7ed126e0e50a2d53b2abd56ae77 /rsh.c
parentb389237ae8cd04c2f53db52e37c02e30c63bcc89 (diff)
downloadgit-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsh.c b/rsh.c
index 5615c74e7d..fe87e581d2 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++) = ' ';