Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
fetch: change ordering of rad/id resolution
Adrian Duke committed 3 months ago
commit 973b57c93c3654df17ff67f47274bfb4862ebc57
parent 23f782f34388dad282a7516aa93731d8f3ca8889
1 file changed +2 -1
modified crates/radicle-fetch/src/state.rs
@@ -641,7 +641,8 @@ where
        let tip = self.refname_to_id(refs::REFS_RAD_ID.clone())?;
        let cached_tip = self.canonical_rad_id();

-
        tip.or(cached_tip)
+
        cached_tip
+
            .or(tip)
            .map(|tip| self.verified(tip).map_err(error::Canonical::from))
            .transpose()
    }