Windows: work around hanging send-pack (aka push over git protocol)
commit8eb3259b0046e36fe90cc51a385add0b8a5b24e9
authorJohannes Sixt <j6t@kdbg.org>
Mon, 3 Oct 2011 17:58:38 +0000 (3 19:58 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 15 Nov 2012 06:50:32 +0000 (15 07:50 +0100)
tree610637fad926480fda6b3f1fa56610f5c82bc8b2
parentb0b00a3ee43b4813eb85728a482500f6422499fd
Windows: work around hanging send-pack (aka push over git protocol)

On Windows, git suffers from a hang in send-pack that is to be attributed
to the following conditions:

- A thread is spawned (the sideband demultiplexer).
- The thread reads from a network socket.
- The network socket is also inherited to a child process (pack-objects).

With this combination of conditions, we observe a hang in send-pack that
so far nobody has been able to explain, let alone to fix properly.

With this patch we work around the problem by not using the sideband on
Windows at all in send-pack.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
compat/mingw.h
git-compat-util.h
send-pack.c
t/t5401-update-hooks.sh