l10n: sv.po: Update Swedish translation (3288t0f0u)
[gitweb.git] / t / t0001-init.sh
index 0fd2fc453854794919b507a90608b1e5f7670ce1..c413bff9cf1f3a79ef494b39844c42d3a8c877f1 100755 (executable)
@@ -456,7 +456,13 @@ 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 -z "$(GIT_REDIRECT_STDOUT=off git rev-parse --git-dir)" &&
+       test_must_fail env \
+               GIT_REDIRECT_STDOUT=output.txt \
+               GIT_REDIRECT_STDERR="2>&1" \
+               git rev-parse --git-dir --verify refs/invalid &&
+       printf ".git\nfatal: Needed a single revision\n" >expect &&
+       test_cmp expect output.txt
 '
 
 test_done