projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b389237
)
[PATCH] ssh-push.c: Fix handling of ssh://host/path URLs
author
Sven Verdoolaege
<skimo@liacs.nl>
Fri, 17 Jun 2005 08:13:18 +0000
(10:13 +0200)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 19 Jun 2005 17:48:41 +0000
(10:48 -0700)
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>
rsh.c
patch
|
blob
|
history
diff --git
a/rsh.c
b/rsh.c
index 5615c74e7d5f4e5f9d93c0f90c6f57fe8b41442f..fe87e581d21d0465da9e3fadef0454c69640caa7 100644
(file)
--- 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++) = ' ';