remote-helper: Fix issue with legacy patches
Legacy (or broken) patches prevented merge operations from happening.
This commit is contained in:
parent
9cf20ddef9
commit
04d70f27d8
|
|
@ -460,7 +460,10 @@ fn patch_merge_all<G: Signer>(
|
|||
|
||||
let mut patches = patch::Patches::open(stored)?;
|
||||
for patch in patches.all()? {
|
||||
let (id, patch) = patch?;
|
||||
let Ok((id, patch)) = patch else {
|
||||
// Skip patches that failed to load.
|
||||
continue;
|
||||
};
|
||||
let (revision_id, revision) = patch.latest();
|
||||
|
||||
if patch.is_open() && commits.contains(&revision.head()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue