[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:
Sven Verdoolaege 2005-06-17 10:13:18 +02:00 коммит произвёл Linus Torvalds
Родитель b389237ae8
Коммит 44ab20cd88
1 изменённых файлов: 1 добавлений и 0 удалений

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++) = ' ';