It has been reported [1] that cloning from a Git-for-Windows daemon would sometimes fail with an early EOF error: $ git clone git://server/test Cloning into 'test'... remote: Counting objects: 36, done. remote: Compressing objects: 100% (24/24), done. fatal: read error: Invalid argument fatal: early EOF fatal: index-pack failed These patches solve the issue by only changing git-daemon, its child processes can remain unaware that stdin/stdout are actually network connections. [1] https://github.com/git-for-windows/git/issues/304 Kim Gybels (2): daemon: use timeout for uninterruptible poll daemon: graceful shutdown of client connection daemon.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) -- 2.17.0.windows.1