]> git.ipfire.org Git - thirdparty/git.git/commit
t/lib-pager: use sane_unset() to avoid breaking &&-chain
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 9 Dec 2021 05:10:57 +0000 (00:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Dec 2021 21:35:47 +0000 (13:35 -0800)
commitfca965a3bc173a8fb83f34b156c2aa6028803356
treeedba44108739e06002cead23ff210a3c61869bc8
parentabe6bb3905392d5eb6b01fa6e54d7e784e0522aa
t/lib-pager: use sane_unset() to avoid breaking &&-chain

This test intentionally breaks the &&-chain following `unset` since it
doesn't know if `unset` will succeed or fail and doesn't want a local
`unset` failure to abort 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>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-pager.sh