about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepobrowseGitPlain.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-16 03:21:06 +0000
committerEric Wong <e@80x24.org>2016-04-05 18:58:27 +0000
commit8ceeea662e01a65951d5d07fc9993087242d6206 (patch)
treebdada3bd8391ee5f43bb3a99fca30a9031b537a7 /lib/PublicInbox/RepobrowseGitPlain.pm
parentff5d4363edb4fd30830826742acfc3f1c9fa5864 (diff)
downloadpublic-inbox-8ceeea662e01a65951d5d07fc9993087242d6206.tar.gz
We will use core.abbrev=12 by default if unset, as the git
default of 7 is too low for long-term usability of links.
Some of our callers used 16, which was probably excessive.
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitPlain.pm')
-rw-r--r--lib/PublicInbox/RepobrowseGitPlain.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepobrowseGitPlain.pm b/lib/PublicInbox/RepobrowseGitPlain.pm
index 89788a10..01919895 100644
--- a/lib/PublicInbox/RepobrowseGitPlain.pm
+++ b/lib/PublicInbox/RepobrowseGitPlain.pm
@@ -57,7 +57,7 @@ sub git_tree_plain {
                         $pfx = "$last/";
                 }
         }
-        my $ls = $git->popen(qw(ls-tree --name-only -z --abbrev=12), $hex);
+        my $ls = $git->popen(qw(ls-tree --name-only -z), $git->abbrev, $hex);
         sub {
                 my ($res) = @_;
                 my $fh = $res->([ 200, ['Content-Type' => 'text/html']]);