From: Jeff King Date: Thu, 18 Aug 2011 05:00:47 +0000 (-0700) Subject: t7006: modernize calls to unset X-Git-Tag: v1.7.7-rc1~37^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=212ad944209a928dbf79faa124de77be5c84532e;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh index ed7575d0f..c0a3135c7 100755 --- a/t/t7006-pager.sh +++ b/t/t7006-pager.sh @@ -402,7 +402,7 @@ test_core_pager_subdir expect_success test_must_fail \ 'git -p apply expect && >actual && git config --unset core.pager && @@ -412,7 +412,7 @@ test_expect_success TTY 'command-specific pager' ' ' test_expect_success TTY 'command-specific pager overrides core.pager' ' - unset PAGER GIT_PAGER; + sane_unset PAGER GIT_PAGER && echo "foo:initial" >expect && >actual && git config core.pager "exit 1"