summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 822f7c7)
raw | patch | inline | side by side (parent: 822f7c7)
author | Eric Wong <normalperson@yhbt.net> | |
Sat, 22 Sep 2007 01:48:45 +0000 (18:48 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Sep 2007 00:07:10 +0000 (17:07 -0700) |
Even though config_pager() unset the $pager variable, we were
blindly calling exec() on it through run_pager().
Noticed-by: Chris Moore <christopher.ian.moore@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
blindly calling exec() on it through run_pager().
Noticed-by: Chris Moore <christopher.ian.moore@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index f8181609f942b22dc95992740326e8b5788feba5..c015ea8580e8e19dc27a0f66af38995335df8c82 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
}
sub run_pager {
- return unless -t *STDOUT;
+ return unless -t *STDOUT && defined $pager;
pipe my $rfd, my $wfd or return;
defined(my $pid = fork) or ::fatal "Can't fork: $!\n";
if (!$pid) {