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/RepobrowseGitCommit.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/RepobrowseGitCommit.pm')
-rw-r--r-- | lib/PublicInbox/RepobrowseGitCommit.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepobrowseGitCommit.pm b/lib/PublicInbox/RepobrowseGitCommit.pm index 5c8407b2..64d0b607 100644 --- a/lib/PublicInbox/RepobrowseGitCommit.pm +++ b/lib/PublicInbox/RepobrowseGitCommit.pm @@ -122,8 +122,8 @@ sub call_git_commit { my $id = $q->{id}; $id eq '' and $id = 'HEAD'; my $git = $req->{repo_info}->{git}; - my @cmd = qw(show -z --numstat -p --encoding=UTF-8 - --no-notes --no-color --abbrev=10 -c); + my @cmd = (qw(show -z --numstat -p --encoding=UTF-8 + --no-notes --no-color -c), $git->abbrev); my @path; # kill trailing slash |