Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
remote-helper: Ignore decoding errors on fetch
Alexis Sellier committed 2 years ago
commit 30f2e2260a93cd2249320986a68c94862099da53
parent 5466232dd43b4da224663bb6d4f67d732f9460ec
1 file changed +4 -1
modified radicle-remote-helper/src/list.rs
@@ -71,7 +71,10 @@ pub fn for_push<R: ReadRepository>(profile: &Profile, stored: &R) -> Result<(),
fn patch_refs<R: ReadRepository + cob::Store>(stored: &R) -> Result<(), Error> {
    let patches = radicle::cob::patch::Patches::open(stored)?;
    for patch in patches.all()? {
-
        let (id, patch) = patch?;
+
        let Ok((id, patch)) = patch else {
+
            // Ignore patches that fail to decode.
+
            continue;
+
        };
        let head = patch.head();

        if patch.is_open() && stored.commit(*head).is_ok() {