From: Johannes Sixt <>

Two tests use GIT_TRACE=3 to dump debugging information of git. On
Windows, however, bash is unable to set up file descriptor 3 correctly
for its child process, so that git reports "Bad file descriptor" on
every trace attempt. The 'git clone' test succeeds nevertheless because
an empty trace file remains, and there is only a check for the
absence of a particular line. But the 'git fetch' process ultimately
hangs (the dynamics that lead to this surprising result have not been

Since we do not otherwise use stderr in the test cases, divert the
trace dump to stderr.

Signed-off-by: Johannes Sixt <>
 This fixes a regression introduced in 

 t/ | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/ b/t/
index 9cd3b4d..8b5c58e 100755
--- a/t/
+++ b/t/
@@ -55,7 +55,7 @@ cd "$base_dir"
 rm -f "$U.D"
 test_expect_success 'cloning with reference (no -l -s)' \
-'GIT_TRACE_PACKET=3 git clone --reference B "file://$(pwd)/A" D 3>"$U.D"'
+'GIT_TRACE_PACKET=2 git clone --reference B "file://$(pwd)/A" D 2>"$U.D"'
 test_expect_success 'fetched no objects' \
 '! grep " want" "$U.D"'
@@ -173,7 +173,7 @@ test_expect_success 'fetch with incomplete alternates' '
                cd K &&
                git remote add J "file://$base_dir/J" &&
-               GIT_TRACE_PACKET=3 git fetch J 3>"$U.K"
+               GIT_TRACE_PACKET=2 git fetch J 2>"$U.K"
        ) &&
        master_object=$(cd A && git for-each-ref --format="%(objectname)" 
refs/heads/master) &&
        ! grep " want $master_object" "$U.K" &&
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to