mirror of
https://github.com/git/git.git
synced 2024-11-20 11:54:36 +01:00
16 lines
271 B
Bash
16 lines
271 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
test_expect_success 'determine default pager' '
|
||
|
test_might_fail git config --unset core.pager &&
|
||
|
less=$(
|
||
|
unset PAGER GIT_PAGER;
|
||
|
git var GIT_PAGER
|
||
|
) &&
|
||
|
test -n "$less"
|
||
|
'
|
||
|
|
||
|
if expr "$less" : '^[a-z][a-z]*$' >/dev/null
|
||
|
then
|
||
|
test_set_prereq SIMPLEPAGER
|
||
|
fi
|