git-svn: don't attempt to spawn pager if we don't want one
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>
Eric Wong committed
Sep 21, 2007 at 18:48 UTC
b019304886c2f5d702988e8f8bd86a1b621183c6
1 file changed
+1
-1
git-svn.perl
+1
-1
@@ -3576,7 +3576,7 @@ sub config_pager {
3576
}
3577
3578
sub run_pager {
3579
- return unless -t *STDOUT;
3579
+ return unless -t *STDOUT && defined $pager;
3580
pipe my $rfd, my $wfd or return;
3581
defined(my $pid = fork) or ::fatal "Can't fork: $!\n";
3582
if (!$pid) {