3 test_description
='test the Windows-only core.unsetenvvars setting'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 if ! test_have_prereq MINGW
10 skip_all
='skipping Windows-specific tests'
14 test_expect_success
'setup' '
15 test_hook --setup pre-commit <<-\EOF
20 test_expect_success
'core.unsetenvvars works' '
23 git commit --allow-empty -m with 2>err &&
25 git -c core.unsetenvvars=FINDUS,HOBBES,CALVIN \
26 commit --allow-empty -m without 2>err &&