]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiExternal.pm
lei: All Local Externals: bare git dir for alternates
[public-inbox.git] / lib / PublicInbox / LeiExternal.pm
index b5dd85e158b18f007cf53f97e6e6c08f896430e0..aa09be9ea980035d4a2024497c69d025c7bf523e 100644 (file)
@@ -139,6 +139,12 @@ sub add_external_finish {
        my $key = "external.$location.boost";
        my $cur_boost = $cfg->{$key};
        return if defined($cur_boost) && $cur_boost == $new_boost; # idempotent
+       if (-d $location) {
+               require PublicInbox::LeiXSearch;
+               my $lxs = PublicInbox::LeiXSearch->new;
+               $lxs->prepare_external($location);
+               $self->ale->refresh_externals($lxs);
+       }
        $self->lei_config($key, $new_boost);
 }