Revert "Correct logic from merge to fix t1020-subdirectory.sh."

This reverts commit 1a896a5900.

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: <repo address>': no address associated with hostname.
  fatal: The remote end hung up unexpectedly
  Cannot get the repository state from git+ssh://<repo address>

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://<repo address>

Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
This commit is contained in:
Marius Storm-Olsen
2007-08-16 21:16:48 +02:00
parent d1f83218dc
commit a0b4827288

View File

@@ -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;