interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / t0029-core-unsetenvvars.sh

29 lines · 563 bytes Raw Blame History
1#!/bin/sh
2
3test_description='test the Windows-only core.unsetenvvars setting'
4
5. ./test-lib.sh
6
7if ! test_have_prereq MINGW
8then
9 skip_all='skipping Windows-specific tests'
10 test_done
11fi
12
13test_expect_success 'setup' '
14 test_hook --setup pre-commit <<-\EOF
15 echo $HOBBES >&2
16 EOF
17'
18
19test_expect_success 'core.unsetenvvars works' '
20 HOBBES=Calvin &&
21 export HOBBES &&
22 git commit --allow-empty -m with 2>err &&
23 test_grep Calvin err &&
24 git -c core.unsetenvvars=FINDUS,HOBBES,CALVIN \
25 commit --allow-empty -m without 2>err &&
26 test_grep ! Calvin err
27'
28
29test_done