Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: use `resolve_unprotected` for `get_head`
Fintan Halpenny committed 7 months ago
commit 61ead6356bc3d8b18ceab023ecd70880a9c8ae1b
parent 21e2d60f5ac7b07f484686463ed6b01aeae39969
1 file changed +1 -2
modified crates/radicle/src/git/canonical/symbolic.rs
@@ -108,8 +108,7 @@ impl SymbolicRefs {
    /// Convenience method to get the target of the `HEAD` reference.
    /// See also [`SymbolicRefs::head`].
    pub fn get_head(&self) -> Option<&RawTarget> {
-
        self.0
-
            .get(&Unprotected::head())
+
        self.resolve_unprotected(&Unprotected::head())
            .map(|target| target.as_ref())
    }
}