Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
remote-helper: Fix issue with legacy patches
cloudhead committed 2 years ago
commit 04d70f27d854803b3f49c9715749e5338370cfef
parent 9cf20ddef918ee945e978f5311a9a69e94a7fceb
1 file changed +4 -1
modified radicle-remote-helper/src/push.rs
@@ -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()) {