Code

config: run setup_git_directory_gently() sooner
[git.git] / t / t7006-pager.sh
index 1890c65fa123e40f956d2c12d6bbe2ecfbcc59d8..017565f3329795b9c8cd39b76fa03e2a16bb3067 100755 (executable)
@@ -134,6 +134,14 @@ test_expect_success TTY 'configuration can disable pager' '
        ! test -e paginated.out
 '
 
+test_expect_success 'git config uses a pager if configured to' '
+       rm -f paginated.out &&
+       git config pager.config true &&
+       test_when_finished "git config --unset pager.config" &&
+       test_terminal git config --list &&
+       test -e paginated.out
+'
+
 test_expect_success 'configuration can enable pager (from subdir)' '
        rm -f paginated.out &&
        mkdir -p subdir &&