]> Sergey Matveev's repositories - public-inbox.git/commitdiff
solver: try the next patch on apply failures
authorEric Wong <e@80x24.org>
Thu, 2 Jan 2020 09:24:57 +0000 (09:24 +0000)
committerEric Wong <e@80x24.org>
Fri, 3 Jan 2020 02:29:15 +0000 (02:29 +0000)
Sometimes a patch is corrupted and resent to create the same
OID.  We need to account for that case and actually move onto
the next patch instead of blindly trying "git ls-files" to get
nothing out of it.

lib/PublicInbox/SolverGit.pm

index c57fb4c6b5c5e60f35a4004864b185512c2eb21d..3e3a5899f25523ca58605d5710207dcb5cfa1c1f 100644 (file)
@@ -452,6 +452,7 @@ sub apply_result ($$) {
                if ($nxt && oids_same_ish($nxt->{oid_b}, $di->{oid_b})) {
                        dbg($self, $msg);
                        dbg($self, 'trying '.di_url($self, $nxt));
+                       return do_git_apply($self);
                } else {
                        ERR($self, $msg);
                }