]> Sergey Matveev's repositories - public-inbox.git/commitdiff
init: enable pack bitmaps by default
authorEric Wong <e@80x24.org>
Fri, 2 Sep 2016 01:06:42 +0000 (01:06 +0000)
committerEric Wong <e@80x24.org>
Fri, 2 Sep 2016 01:11:53 +0000 (01:11 +0000)
We want to encourage users to serve repositories.  So enable
bitmaps by default so performance suffers less with smart HTTP.

script/public-inbox-init

index 54d6ce4c11743c7137352379bb6f83c83fa4f8cc..739ec9e55530c3dacdc3c6e9e33df6b099e474a6 100755 (executable)
@@ -63,6 +63,10 @@ my $pfx = "publicinbox.$name";
 my @x = (qw/git config/, "--file=$filename");
 $git_dir = abs_path($git_dir);
 x(qw(git init -q --bare), $git_dir);
+
+# set a reasonable default:
+x(qw/git config/, "--file=$git_dir/config", 'repack.writeBitmaps', 'true');
+
 foreach my $addr (@address) {
        next if $seen{lc($addr)};
        x(@x, "--add", "$pfx.address", $addr);