summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2011-02-04 08:41:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-07 22:18:56 (GMT)
commit13af8cbd6af3f572a5c6c2fb7adc8fc7c408a3e2 (patch)
treeb6fe77d266eb7d4faf2e53f6f3642e9fee140bc5
parent787d2a784b1d5d9c59c0098533ce9fdb757942d9 (diff)
downloadgit-13af8cbd6af3f572a5c6c2fb7adc8fc7c408a3e2.zip
git-13af8cbd6af3f572a5c6c2fb7adc8fc7c408a3e2.tar.gz
git-13af8cbd6af3f572a5c6c2fb7adc8fc7c408a3e2.tar.bz2
start_command: flush buffers in the WIN32 code path as well
The POSIX code path did The Right Thing already, but we have to do the same on Windows. This bug caused failures in t5526-fetch-submodules, where the output of 'git fetch --recurse-submodules' was in the wrong order. Debugged-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index 2a1041e..f91e446 100644
--- a/run-command.c
+++ b/run-command.c
@@ -194,6 +194,7 @@ fail_pipe:
}
trace_argv_printf(cmd->argv, "trace: run_command:");
+ fflush(NULL);
#ifndef WIN32
{
@@ -201,7 +202,6 @@ fail_pipe:
if (pipe(notify_pipe))
notify_pipe[0] = notify_pipe[1] = -1;
- fflush(NULL);
cmd->pid = fork();
if (!cmd->pid) {
/*