3 test_description='test the Windows-only core.unsetenvvars setting'
7 if ! test_have_prereq MINGW
9 skip_all='skipping Windows-specific tests'
13 test_expect_success 'setup' '
14 mkdir -p "$TRASH_DIRECTORY/.git/hooks" &&
15 write_script "$TRASH_DIRECTORY/.git/hooks/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 &&