1# Helpers for tests of git's choice of pager.
23
test_expect_success 'determine default pager' '
4test_might_fail git config --unset core.pager &&
5less=$(
6unset PAGER GIT_PAGER;
7git var GIT_PAGER
8) &&
9test -n "$less"
10'
1112
if expr "$less" : '[a-z][a-z]*$' >/dev/null
13then
14test_set_prereq SIMPLEPAGER
15fi