From f9c0da2f818d3e8ada57d5d1a8d07139f2c5a8a0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 15 Dec 2023 15:22:48 -0500 Subject: git: quiet down `rev-parse --git-path' errors This fixes t/mda.t with git 1.8.5 --- lib/PublicInbox/Git.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 9c4d938e..6c4fcf93 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 -- cgit v1.2.3-24-ge0c7