Merge branch 'je/pager-do-not-recurse'
authorJunio C Hamano <gitster@pobox.com>
Fri, 6 Jun 2014 18:16:59 +0000 (11:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jun 2014 18:17:00 +0000 (11:17 -0700)
We used to unconditionally disable the pager in the pager process
we spawn to feed out output, but that prevented people who want to
run "less" within "less" from doing so.

* je/pager-do-not-recurse:
pager: do allow spawning pager recursively

pager.c
diff --git a/pager.c b/pager.c
index f75e8aece0d4273afd994e2b3eca70a02fa2d8c9..8b5cbc56e4fd57a1b9d2cad3e668df4c508a7b17 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -64,7 +64,7 @@ void setup_pager(void)
 {
        const char *pager = git_pager(isatty(1));
 
-       if (!pager || pager_in_use())
+       if (!pager)
                return;
 
        /*