[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>
This commit is contained in:
parent
b389237ae8
commit
44ab20cd88
1
rsh.c
1
rsh.c
@ -41,6 +41,7 @@ int setup_connection(int *fd_in, int *fd_out, const char *remote_prog,
|
|||||||
snprintf(command, COMMAND_SIZE,
|
snprintf(command, COMMAND_SIZE,
|
||||||
"%s='%s' %s",
|
"%s='%s' %s",
|
||||||
GIT_DIR_ENVIRONMENT, path, remote_prog);
|
GIT_DIR_ENVIRONMENT, path, remote_prog);
|
||||||
|
*path = '\0';
|
||||||
posn = command + strlen(command);
|
posn = command + strlen(command);
|
||||||
for (i = 0; i < rmt_argc; i++) {
|
for (i = 0; i < rmt_argc; i++) {
|
||||||
*(posn++) = ' ';
|
*(posn++) = ' ';
|
||||||
|
Loading…
Reference in New Issue
Block a user