about summary refs log tree commit homepage
path: root/lib/PublicInbox/Fetch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-24 10:56:42 +0000
committerEric Wong <e@80x24.org>2021-09-24 23:22:06 +0000
commit3f7ba918e134e9f86c1f2bc90a89ae94f0c2dbf6 (patch)
tree5667a1b5581f9e1eb761556638829ad980fc6deb /lib/PublicInbox/Fetch.pm
parent69b5ab18a594fa434d79cacee35c4d9a0df7b55c (diff)
downloadpublic-inbox-3f7ba918e134e9f86c1f2bc90a89ae94f0c2dbf6.tar.gz
We need to check every epoch for writability, so don't
break out of the loop when we find a URL.
Diffstat (limited to 'lib/PublicInbox/Fetch.pm')
-rw-r--r--lib/PublicInbox/Fetch.pm2
1 files changed, 1 insertions, 1 deletions
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";
                         }