Skip to content

Commit 2857551

Browse files
author
Junio C Hamano
committed
Merge branch 'fix'
* fix: git-log produces no output
2 parents 3c144af + 34fd1c9 commit 2857551

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pager.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
static void run_pager(const char *pager)
99
{
1010
execlp(pager, pager, NULL);
11+
execl("/bin/sh", "sh", "-c", pager, NULL);
1112
}
1213

1314
void setup_pager(void)
@@ -47,5 +48,6 @@ void setup_pager(void)
4748

4849
setenv("LESS", "-S", 0);
4950
run_pager(pager);
51+
die("unable to execute pager '%s'", pager);
5052
exit(255);
5153
}

0 commit comments

Comments
 (0)