summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:44 (GMT)
commit43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb (patch)
tree0266c7f74ea0a866b25d751b9d283c7c46cff6d3 /t
parentdc7e09a3e0b1a06348a0b59da71ceefe08489e77 (diff)
parent995bc22d7f8c611e342095a211065f8585a08e65 (diff)
downloadgit-43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb.zip
git-43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb.tar.gz
git-43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb.tar.bz2
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-xt/t7006-pager.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh
index e4fc5c8..c8dc665 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 &&