Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle/cob/stream: skip commits that do not have a manifest
◌ CI pending Fintan Halpenny committed 4 months ago
commit b8a6e1a52fed64aaad86719a2f1f4783d778ad36
parent cf023f750dee2681eb73e4e0704da137ea2195ef
1 pending (1 total) View logs
1 file changed +8 -1
modified crates/radicle/src/cob/stream/iter.rs
@@ -138,7 +138,14 @@ where
                // N.b. mark this commit as seen, so that it is not walked again
                self.walk.inner.hide(commit.id()).ok();
                // Skip any Op that do not match the manifest
-
                self.load(entry).transpose().or_else(|| self.next())
+
                match self.load(entry) {
+
                    Ok(entry) => entry.map(Ok).or_else(|| self.next()),
+
                    Err(err) => match err {
+
                        // This is a parent commit that is not an Op
+
                        error::Ops::Manifest { source: _ } => self.next(),
+
                        err => Some(Err(err)),
+
                    },
+
                }
            }
            // Something was wrong with the commit
            Err(err) => Some(Err(error::Ops::Commit { source: err })),