t7800: improve test descriptions with empty arguments
[alt-git.git] / t / t0029-core-unsetenvvars.sh
blob4e8e90dd9824b33bd4420423a447decea46e848e
1 #!/bin/sh
3 test_description='test the Windows-only core.unsetenvvars setting'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 if ! test_have_prereq MINGW
9 then
10 skip_all='skipping Windows-specific tests'
11 test_done
14 test_expect_success 'setup' '
15 test_hook --setup pre-commit <<-\EOF
16 echo $HOBBES >&2
17 EOF
20 test_expect_success 'core.unsetenvvars works' '
21 HOBBES=Calvin &&
22 export HOBBES &&
23 git commit --allow-empty -m with 2>err &&
24 grep Calvin err &&
25 git -c core.unsetenvvars=FINDUS,HOBBES,CALVIN \
26 commit --allow-empty -m without 2>err &&
27 ! grep Calvin err
30 test_done