require PublicInbox::GitAsync;
};
-# Documentation/SubmittingPatches recommends 12 (Linux v4.4)
-my $abbrev = `git config core.abbrev` || 12;
-
-sub abbrev { "--abbrev=$abbrev" }
-
sub new {
my ($class, $git_dir) = @_;
bless { git_dir => $git_dir }, $class
my $env = $req->{env};
my $tip = $req->{tip} || $repo->tip;
my $read_log = sub {
- my $cmd = $git->cmd(qw(log --no-notes --no-color
- --abbrev-commit), $git->abbrev,
+ my $cmd = $git->cmd(qw(log --no-notes --no-color --no-abbrev),
$ATOM_FMT, "-$max", $tip, '--');
my $expath = $req->{expath};
push @$cmd, $expath if $expath ne '';
sub git_tree_show {
my ($self, $req, $res, $hex) = @_;
my $git = $req->{-repo}->{git};
- my $cmd = $git->cmd(qw(ls-tree -l -z), $git->abbrev, $hex);
+ my $cmd = $git->cmd(qw(ls-tree -l -z --no-abbrev), $hex);
my $rdr = { 2 => $git->err_begin };
my $qsp = PublicInbox::Qspawn->new($cmd, undef, $rdr);
my $t = cur_path($req);