Skip to content

Commit

Permalink
[PATCH] ssh-push.c: Fix handling of ssh://host/path URLs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Verdoolaege authored and Linus Torvalds committed Jun 19, 2005
1 parent b389237 commit 44ab20c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rsh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) = ' ';
Expand Down

0 comments on commit 44ab20c

Please sign in to comment.