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 mkdir -p "$TRASH_DIRECTORY/.git/hooks" &&
16 write_script "$TRASH_DIRECTORY/.git/hooks/pre-commit" <<-\EOF
21 test_expect_success
'core.unsetenvvars works' '
24 git commit --allow-empty -m with 2>err &&
26 git -c core.unsetenvvars=FINDUS,HOBBES,CALVIN \
27 commit --allow-empty -m without 2>err &&