summaryrefslogtreecommitdiff
path: root/t/t1300-config.sh
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-07-02 00:23:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-03 19:38:04 (GMT)
commited6c994af407dd2bea110460657222e39a7d83ad (patch)
tree8b21a757e09a53b572e01aad98d260a98afca0c5 /t/t1300-config.sh
parent0590ff26c406204281262c2753b3b92aa07f59c7 (diff)
downloadgit-ed6c994af407dd2bea110460657222e39a7d83ad.zip
git-ed6c994af407dd2bea110460657222e39a7d83ad.tar.gz
git-ed6c994af407dd2bea110460657222e39a7d83ad.tar.bz2
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-xt/t1300-config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index 03c2237..24706ba 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 &&