diff options
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitTree.pm')
-rw-r--r-- | lib/PublicInbox/RepobrowseGitTree.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepobrowseGitTree.pm b/lib/PublicInbox/RepobrowseGitTree.pm index a2e38017..c242fd1a 100644 --- a/lib/PublicInbox/RepobrowseGitTree.pm +++ b/lib/PublicInbox/RepobrowseGitTree.pm @@ -189,8 +189,7 @@ sub git_tree_sed ($) { sub git_tree_show { my ($req, $hex, $q) = @_; my $git = $req->{repo_info}->{git}; - my $cmd = [ 'git', "--git-dir=$git->{git_dir}", qw(ls-tree -l -z), - $git->abbrev, $hex ]; + my $cmd = $git->cmd(qw(ls-tree -l -z), $git->abbrev, $hex); my $rdr = { 2 => $git->err_begin }; my $qsp = PublicInbox::Qspawn->new($cmd, undef, $rdr); my $t = cur_path($req, $q); |