зеркало из https://github.com/microsoft/git.git
[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:
Родитель
b389237ae8
Коммит
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,
|
||||
"%s='%s' %s",
|
||||
GIT_DIR_ENVIRONMENT, path, remote_prog);
|
||||
*path = '\0';
|
||||
posn = command + strlen(command);
|
||||
for (i = 0; i < rmt_argc; i++) {
|
||||
*(posn++) = ' ';
|
||||
|
|
Загрузка…
Ссылка в новой задаче