diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-08 23:48:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-08 23:48:44 +0200 |
commit | 43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb (patch) | |
tree | 0266c7f74ea0a866b25d751b9d283c7c46cff6d3 /t | |
parent | Merge branch 'sb/submodule-recommend-shallowness' (diff) | |
parent | pager: move pager-specific setup into the build (diff) | |
download | git-43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb.tar.xz git-43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb.zip |
Merge branch 'ew/build-time-pager-tweaks'
The build procedure learned PAGER_ENV knob that lists what default
environment variable settings to export for popular pagers. This
mechanism is used to tweak the default settings to MORE on FreeBSD.
* ew/build-time-pager-tweaks:
pager: move pager-specific setup into the build
Diffstat (limited to 't')
-rwxr-xr-x | t/t7006-pager.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh index e4fc5c826c..c8dc665f2f 100755 --- a/t/t7006-pager.sh +++ b/t/t7006-pager.sh @@ -49,6 +49,19 @@ test_expect_success TTY 'LESS and LV envvars are set for pagination' ' grep ^LV= pager-env.out ' +test_expect_success !MINGW,TTY 'LESS and LV envvars set by git-sh-setup' ' + ( + sane_unset LESS LV && + PAGER="env >pager-env.out; wc" && + export PAGER && + PATH="$(git --exec-path):$PATH" && + export PATH && + test_terminal sh -c ". git-sh-setup && git_pager" + ) && + grep ^LESS= pager-env.out && + grep ^LV= pager-env.out +' + test_expect_success TTY 'some commands do not use a pager' ' rm -f paginated.out && test_terminal git rev-list HEAD && |