diff options
-rw-r--r-- | lib/PublicInbox/Git.pm | 4 |
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 |