From 3f7ba918e134e9f86c1f2bc90a89ae94f0c2dbf6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 24 Sep 2021 10:56:42 +0000 Subject: 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. --- lib/PublicInbox/Fetch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Fetch.pm') 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"; } -- cgit v1.2.3-24-ge0c7