mingw: add experimental feature to redirect standard handles
[gitweb.git] / t / t0001-init.sh
index 86c1a51654fa6c1b049a313fe8d880c6a266ee62..0fd2fc453854794919b507a90608b1e5f7670ce1 100755 (executable)
@@ -453,4 +453,10 @@ test_expect_success 're-init from a linked worktree' '
        )
 '
 
+test_expect_success MINGW 'redirect std handles' '
+       GIT_REDIRECT_STDOUT=output.txt git rev-parse --git-dir &&
+       test .git = "$(cat output.txt)" &&
+       test -z "$(GIT_REDIRECT_STDOUT=off git rev-parse --git-dir)"
+'
+
 test_done