From 3eafdb33697581b8d797bf7c664a53a311725075 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 2 Jan 2020 09:24:57 +0000 Subject: solver: try the next patch on apply failures 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm index c57fb4c6..3e3a5899 100644 --- a/lib/PublicInbox/SolverGit.pm +++ b/lib/PublicInbox/SolverGit.pm @@ -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); } -- cgit v1.2.3-24-ge0c7