mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
![Jonathan Nieder](/assets/img/avatar_default.png)
A #! line in these files is misleading, since these scriptlets are meant to be sourced with '.' (using whatever shell sources them) instead of run directly using the interpreter named on the #! line. Removing the #! line shouldn't hurt syntax highlighting since these files have filenames ending with '.sh'. For documentation, add a brief description of how the files are meant to be used in place of the shebang line. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 lines
306 B
Bash
16 lines
306 B
Bash
# Helpers for tests of git's choice of pager.
|
|
|
|
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
|