Skip to content

Commit 212ad94

Browse files
peffgitster
authored andcommitted
t7006: modernize calls to unset
These tests break &&-chaining to deal with broken "unset" implementations. Instead, they should just use sane_unset. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a47a645 commit 212ad94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7006-pager.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ test_core_pager_subdir expect_success test_must_fail \
402402
'git -p apply </dev/null'
403403

404404
test_expect_success TTY 'command-specific pager' '
405-
unset PAGER GIT_PAGER;
405+
sane_unset PAGER GIT_PAGER &&
406406
echo "foo:initial" >expect &&
407407
>actual &&
408408
git config --unset core.pager &&
@@ -412,7 +412,7 @@ test_expect_success TTY 'command-specific pager' '
412412
'
413413

414414
test_expect_success TTY 'command-specific pager overrides core.pager' '
415-
unset PAGER GIT_PAGER;
415+
sane_unset PAGER GIT_PAGER &&
416416
echo "foo:initial" >expect &&
417417
>actual &&
418418
git config core.pager "exit 1"

0 commit comments

Comments
 (0)