summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@liacs.nl>2005-06-17 08:13:18 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 17:48:41 (GMT)
commit44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79 (patch)
tree2ef46b192241a7ed126e0e50a2d53b2abd56ae77
parentb389237ae8cd04c2f53db52e37c02e30c63bcc89 (diff)
downloadgit-44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79.zip
git-44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79.tar.gz
git-44ab20cd884dcb3d2ef4cfbda4591dd2cd9bee79.tar.bz2
[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>
-rw-r--r--rsh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsh.c b/rsh.c
index 5615c74..fe87e58 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++) = ' ';