]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
use %H consistently to disable abbreviations
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index 2cc87305668256709f773415f750e5f52653503c..1316d628491f576c0096b3be215826d94e03aae9 100644 (file)
@@ -788,7 +788,7 @@ $range
                $ranges->[$i] = $range;
 
                # can't use 'rev-list --count' if we use --diff-filter
-               my $fh = $git->popen(qw(log --pretty=tformat:%h
+               my $fh = $git->popen(qw(log --pretty=tformat:%H
                                --no-notes --no-color --no-renames
                                --diff-filter=AM), $range, '--', 'm');
                ++$regen_max while <$fh>;
@@ -865,7 +865,7 @@ sub index_sync {
        my $regen = $self->index_prepare($opts, $epoch_max, $ranges);
        $$regen += $max if $max;
        my $D = {};
-       my @cmd = qw(log --raw -r --pretty=tformat:%h
+       my @cmd = qw(log --raw -r --pretty=tformat:%H
                        --no-notes --no-color --no-abbrev --no-renames);
 
        # work backwards through history