From: Eric Wong Date: Fri, 18 Jan 2019 06:09:24 +0000 (+0000) Subject: git: disable abbreviations with cat-file hints X-Git-Tag: v1.2.0~397^2~56 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=77d9f14ee83324afc5961c0115480baa5ff5b475;p=public-inbox.git git: disable abbreviations with cat-file hints Ambiguity is not worth it for internal usage with the solver. --- diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index a61cb31b..b655921b 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -92,7 +92,8 @@ sub _bidi_pipe { fcntl($in_w, 1031, 4096) if $batch eq '--batch-check'; } - my @cmd = ('git', "--git-dir=$self->{git_dir}", qw(cat-file), $batch); + my @cmd = (qw(git), "--git-dir=$self->{git_dir}", + qw(-c core.abbrev=40 cat-file), $batch); my $redir = { 0 => fileno($out_r), 1 => fileno($in_w) }; if ($err) { open(my $fh, '+>', undef) or fail($self, "open.err failed: $!");