summaryrefslogtreecommitdiff
path: root/t/t7006-pager.sh
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-07-15 12:41:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-15 18:44:28 (GMT)
commitef60740e9efb364d8bb0fba120adecf860cc8ed0 (patch)
tree67a82d7702905667666b5d7e5da33c3843b06a83 /t/t7006-pager.sh
parent2d9c56905804baa76069e2176035aebd62ddff15 (diff)
downloadgit-ef60740e9efb364d8bb0fba120adecf860cc8ed0.zip
git-ef60740e9efb364d8bb0fba120adecf860cc8ed0.tar.gz
git-ef60740e9efb364d8bb0fba120adecf860cc8ed0.tar.bz2
tests: defang pager tests by explicitly disabling the log.mailmap warning
In the previous patch, we added a deprecation warning for the current log.mailmap setting. This warning only appears when git is attached to a controlling terminal. Some tests however run under an emulated terminal, so we need to disable the warning for those tests. Thanks to Junio for suggesting that we do this in the setup function. Signed-off-by: Ariadne Conill <ariadne@dereferenced.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7006-pager.sh')
-rwxr-xr-xt/t7006-pager.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh
index 00e09a3..7976fa7 100755
--- a/t/t7006-pager.sh
+++ b/t/t7006-pager.sh
@@ -7,6 +7,8 @@ test_description='Test automatic use of a pager.'
. "$TEST_DIRECTORY"/lib-terminal.sh
test_expect_success 'setup' '
+ : squelch advice messages during the transition &&
+ git config --global log.mailmap false &&
sane_unset GIT_PAGER GIT_PAGER_IN_USE &&
test_unconfig core.pager &&