Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Remove dead `fn parse_remote`
✗ CI failure Adrian Duke committed 3 months ago
commit d860ec15b3496f0e5870266a051e4de4629d7cdd
parent 53cb8da8ff030a69edcf7bb73f57c22b83075beb
1 failed (1 total) View logs
1 file changed +0 -8
modified crates/radicle-cli/src/git.rs
@@ -345,14 +345,6 @@ pub fn check_version() -> Result<Version, anyhow::Error> {
    Ok(git_version)
}

-
/// Parse a remote refspec into a peer id and ref.
-
pub fn parse_remote(refspec: &str) -> Option<(NodeId, &str)> {
-
    refspec
-
        .strip_prefix("refs/remotes/")
-
        .and_then(|s| s.split_once('/'))
-
        .and_then(|(peer, r)| NodeId::from_str(peer).ok().map(|p| (p, r)))
-
}
-

pub fn add_tag(
    repo: &Repository,
    message: &str,