diff options
author | Eric Wong <e@80x24.org> | 2016-01-16 03:21:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-05 18:58:27 +0000 |
commit | 8ceeea662e01a65951d5d07fc9993087242d6206 (patch) | |
tree | bdada3bd8391ee5f43bb3a99fca30a9031b537a7 /lib/PublicInbox/RepobrowseGitTree.pm | |
parent | ff5d4363edb4fd30830826742acfc3f1c9fa5864 (diff) | |
download | public-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/RepobrowseGitTree.pm')
-rw-r--r-- | lib/PublicInbox/RepobrowseGitTree.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepobrowseGitTree.pm b/lib/PublicInbox/RepobrowseGitTree.pm index e8012dde..7c5ae60d 100644 --- a/lib/PublicInbox/RepobrowseGitTree.pm +++ b/lib/PublicInbox/RepobrowseGitTree.pm @@ -141,7 +141,7 @@ sub git_blob_show { sub git_tree_show { my ($req, $fh, $git, $hex, $q) = @_; $fh->write('<pre>'); - my $ls = $git->popen(qw(ls-tree --abbrev=16 -l -z), $hex); + my $ls = $git->popen(qw(ls-tree -l -z), $git->abbrev, $hex); my $t = cur_path($req, $q); my $pfx; $fh->write("path: $t\n\n"); |