summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pager.c b/pager.c
index 3bfed02599..8bac9d9903 100644
--- a/pager.c
+++ b/pager.c
@@ -31,8 +31,11 @@ void setup_pager(void)
if (!isatty(1))
return;
- if (!pager)
+ if (!pager) {
+ if (!pager_program)
+ git_config(git_default_config);
pager = pager_program;
+ }
if (!pager)
pager = getenv("PAGER");
if (!pager)