summaryrefslogtreecommitdiff
path: root/pager.c
diff options
context:
space:
mode:
Diffstat (limited to 'pager.c')
-rw-r--r--pager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pager.c b/pager.c
index 5f280ab527..8bac9d9903 100644
--- a/pager.c
+++ b/pager.c
@@ -31,6 +31,11 @@ void setup_pager(void)
if (!isatty(1))
return;
+ if (!pager) {
+ if (!pager_program)
+ git_config(git_default_config);
+ pager = pager_program;
+ }
if (!pager)
pager = getenv("PAGER");
if (!pager)