diff options
author | Eric Wong <e@80x24.org> | 2019-03-08 22:52:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-03-08 22:52:51 +0000 |
commit | 48e20d29289ed60f5e4c14b5425bd63d1f824c5b (patch) | |
tree | 43a25cede2db57a3262e59a9b900d137fd550da3 /lib/PublicInbox/V2Writable.pm | |
parent | 534c55e5a8dc63942bfcd8401b08915c6ce118bc (diff) | |
download | public-inbox-48e20d29289ed60f5e4c14b5425bd63d1f824c5b.tar.gz |
Newly-cloned epochs need to be in alternates file of all.git for the web and NNTP interfaces to work. So allow invocations of "public-inbox-index" to idempotently ensure the epoch is visible from the all.git repo.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index bc31ffa5..6829a343 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -941,6 +941,7 @@ sub index_sync { my $git_dir = git_dir_n($self, $i); die "already reindexing!\n" if delete $self->{reindex_pipe}; -d $git_dir or next; # missing parts are fine + fill_alternates($self, $i); my $git = PublicInbox::Git->new($git_dir); my $unindex = delete $self->{"unindex-range.$i"}; $self->unindex($opts, $git, $unindex) if $unindex; |