X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=pager.c;h=8bac9d990381f5664333a92f68b0b8cd97d43855;hb=9fac800cae287256cea0512f5c5effae7a7aa784;hp=3bfed025996bbdc31aebd4a7b096236c538a4e75;hpb=f8db7884286232274c8e7c7d82a35a2478b097d3;p=git.git diff --git a/pager.c b/pager.c index 3bfed0259..8bac9d990 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)