From: Eric Wong Date: Fri, 24 Sep 2021 10:56:42 +0000 (+0000) Subject: fetch: fix skipping with multi-epoch inboxes X-Git-Tag: v1.7.0~285 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3f7ba918e134e9f86c1f2bc90a89ae94f0c2dbf6;p=public-inbox.git fetch: fix skipping with multi-epoch inboxes We need to check every epoch for writability, so don't break out of the loop when we find a URL. --- diff --git a/lib/PublicInbox/Fetch.pm b/lib/PublicInbox/Fetch.pm index 0bd6502c..464ffe12 100644 --- a/lib/PublicInbox/Fetch.pm +++ b/lib/PublicInbox/Fetch.pm @@ -112,10 +112,10 @@ sub do_fetch { # main entry point $skip->{$nr} = 1; next; } + next if defined $git_url; if (defined(my $url = remote_url($lei, $edir))) { $git_url = $url; $epoch = $nr; - last; } else { warn "W: $edir missing remote.origin.url\n"; }