mirror of
https://github.com/git/git.git
synced 2024-10-28 04:49:43 +01:00
Do not fork PAGER=cat
Unless the user has a nonstandard "cat" command that does not meow like a cat, this should not break anything and would save an extra pipe. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
402461aab1
commit
caef71a535
1 changed files with 1 additions and 1 deletions
2
pager.c
2
pager.c
|
@ -20,7 +20,7 @@ void setup_pager(void)
|
|||
return;
|
||||
if (!pager)
|
||||
pager = "less";
|
||||
else if (!*pager)
|
||||
else if (!*pager || !strcmp(pager, "cat"))
|
||||
return;
|
||||
|
||||
if (pipe(fd) < 0)
|
||||
|
|
Loading…
Reference in a new issue