From: Eric Wong Date: Fri, 15 Dec 2023 20:22:48 +0000 (-0500) Subject: git: quiet down `rev-parse --git-path' errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c0da2f818d3e8ada57d5d1a8d07139f2c5a8a0;p=thirdparty%2Fpublic-inbox.git git: quiet down `rev-parse --git-path' errors This fixes t/mda.t with git 1.8.5 --- diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 9c4d938e9..6c4fcf932 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -107,7 +107,9 @@ sub git_path ($$) { $d; } else { local $/ = "\n"; - my $s = $self->qx(qw(rev-parse --git-path), $path); + my $rdr = { 2 => \my $err }; + my $s = $self->qx([qw(rev-parse --git-path), $path], + undef, $rdr); chomp $s; # git prior to 2.5.0 did not understand --git-path