about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-15 15:22:48 -0500
committerEric Wong <e@80x24.org>2023-12-16 10:06:30 +0000
commitf9c0da2f818d3e8ada57d5d1a8d07139f2c5a8a0 (patch)
tree2906c6c01c024030f74e690b402c2150390a3485
parentaa516f68573f3e3b965ee38f6469225011d078c9 (diff)
downloadpublic-inbox-f9c0da2f818d3e8ada57d5d1a8d07139f2c5a8a0.tar.gz
This fixes t/mda.t with git 1.8.5
-rw-r--r--lib/PublicInbox/Git.pm4
1 files changed, 3 insertions, 1 deletions
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