about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-29 19:43:50 +0000
committerEric Wong <e@80x24.org>2020-09-30 07:55:56 +0000
commitf92f34cd6e79e8222d7bbd8d4f63b6421845e46b (patch)
tree3104a508136393612139f56f900d53945c8c488c
parent447d049b70c6723a0de8e28aa7db1a4130394c4b (diff)
downloadpublic-inbox-f92f34cd6e79e8222d7bbd8d4f63b6421845e46b.tar.gz
Users may want to change the default branch used for git epochs
in v2 (v1 SearchIdx always used whatever "HEAD" pointed to).
-rw-r--r--lib/PublicInbox/V2Writable.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index 5ff2af10..534cd7dc 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -1030,7 +1030,7 @@ sub sync_prepare ($$$) {
         my ($self, $sync, $epoch_max) = @_;
         my $pr = $sync->{-opt}->{-progress};
         my $regen_max = 0;
-        my $head = $self->{ibx}->{ref_head} || 'refs/heads/master';
+        my $head = $self->{ibx}->{ref_head} || 'HEAD';
 
         # reindex stops at the current heads and we later rerun index_sync
         # without {reindex}