X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=pager.c;h=8bac9d990381f5664333a92f68b0b8cd97d43855;hb=5153399c9b0c0e38d00877c4a78248eefeba7ad3;hp=3bfed025996bbdc31aebd4a7b096236c538a4e75;hpb=b8de7f764e1a9f6e8dfb587a6145906394fa607d;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)