about summary refs log tree commit homepage
path: root/public-inbox-index
diff options
context:
space:
mode:
Diffstat (limited to 'public-inbox-index')
-rwxr-xr-xpublic-inbox-index3
1 files changed, 3 insertions, 0 deletions
diff --git a/public-inbox-index b/public-inbox-index
index 53449556..578d91d5 100755
--- a/public-inbox-index
+++ b/public-inbox-index
@@ -57,6 +57,9 @@ foreach my $dir (@dirs) {
 sub index_dir {
         my ($git_dir) = @_;
         -d $git_dir or die "$git_dir does not appear to be a git repository\n";
+
+        system('git', "--git-dir=$git_dir", 'update-server-info') and
+                die "git update-server-info failed for $git_dir";
         my $s = PublicInbox::SearchIdx->new($git_dir, 1);
         $s->index_sync;
 }