From a0b4827288741c7939e40e269aa8298454a56eff Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Thu, 16 Aug 2007 21:16:48 +0200 Subject: [PATCH] Revert "Correct logic from merge to fix t1020-subdirectory.sh." This reverts commit 1a896a59003da71410fe34cf5687832d1f2a6797. The patch had an adverse effect on fetching with the git+ssh protocol, giving me the following errors Pseudo-terminal will not be allocated because stdin is not a terminal. ssh: ': no address associated with hostname. fatal: The remote end hung up unexpectedly Cannot get the repository state from git+ssh:// and [0: 172.20.1.78]: errno=Invalid argument [1: 192.168.1.3]: errno=Bad file descriptor [2: 192.168.35.1]: errno=Bad file descriptor [3: 192.168.150.1]: errno=Bad file descriptor fatal: unable to connect a socket (Bad file descriptor) Cannot get the repository state from git:// Signed-off-by: Marius Storm-Olsen --- connect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connect.c b/connect.c index ea810c4df9..9f51e8dcc8 100644 --- a/connect.c +++ b/connect.c @@ -525,8 +525,7 @@ pid_t git_connect(int fd[2], char *url, const char *prog, int flags) ) { protocol = PROTO_SSH; *path++ = '\0'; - } else - path = host; + } } else path = end;