diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2018-07-02 02:23:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-03 21:38:04 +0200 |
commit | ed6c994af407dd2bea110460657222e39a7d83ad (patch) | |
tree | 8b21a757e09a53b572e01aad98d260a98afca0c5 /t/t1300-config.sh | |
parent | t: use test_write_lines() instead of series of 'echo' commands (diff) | |
download | git-ed6c994af407dd2bea110460657222e39a7d83ad.tar.xz git-ed6c994af407dd2bea110460657222e39a7d83ad.zip |
t: use sane_unset() rather than 'unset' with broken &&-chain
These tests intentionally break the &&-chain after using 'unset' since
they don't know if 'unset' will succeed or fail and don't want a local
'unset' failure to fail the test overall. We can do better by using
sane_unset(), which can be linked into the &&-chain as usual.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1300-config.sh')
-rwxr-xr-x | t/t1300-config.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh index 03c223708e..24706ba412 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -888,7 +888,7 @@ EOF test_expect_success !MINGW 'get --path copes with unset $HOME' ' ( - unset HOME; + sane_unset HOME && test_must_fail git config --get --path path.home \ >result 2>msg && git config --get --path path.normal >>result && |