summaryrefslogtreecommitdiff
path: root/pager.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-21 13:14:30 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-21 13:14:30 -0700
commit285755127a1ce800ce6a95516a37dd342c57c562 (patch)
tree7655e7145dd4884392fdd7ae2f8fe48dd724528e /pager.c
parent3c144afe50b58875a41ea56ef118f41be7bf605a (diff)
parent34fd1c9ac5845d541e3196983df7f993e751b544 (diff)
downloadgit-285755127a1ce800ce6a95516a37dd342c57c562.tar.gz
Merge branch 'fix'
* fix: git-log produces no output
Diffstat (limited to 'pager.c')
-rw-r--r--pager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pager.c b/pager.c
index b063353d96..9a30939016 100644
--- a/pager.c
+++ b/pager.c
@@ -8,6 +8,7 @@
static void run_pager(const char *pager)
{
execlp(pager, pager, NULL);
+ execl("/bin/sh", "sh", "-c", pager, NULL);
}
void setup_pager(void)
@@ -47,5 +48,6 @@ void setup_pager(void)
setenv("LESS", "-S", 0);
run_pager(pager);
+ die("unable to execute pager '%s'", pager);
exit(255);
}