Browse Source

[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>
maint
Sven Verdoolaege 20 years ago committed by Linus Torvalds
parent
commit
44ab20cd88
  1. 1
      rsh.c

1
rsh.c

@ -41,6 +41,7 @@ int setup_connection(int *fd_in, int *fd_out, const char *remote_prog, @@ -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++) = ' ';

Loading…
Cancel
Save