diff --git a/crates/radicle-remote-helper/src/main.rs b/crates/radicle-remote-helper/src/main.rs index 6bbc22a3..86defaf9 100644 --- a/crates/radicle-remote-helper/src/main.rs +++ b/crates/radicle-remote-helper/src/main.rs @@ -176,7 +176,7 @@ enum Branch { impl Branch { /// Return the branch name to be used for the local branch when creating a /// patch. - fn to_branch_name(self, object: &radicle::patch::PatchId) -> Option> { + fn into_branch_name(self, object: &radicle::patch::PatchId) -> Option> { match self { Self::None => None, Self::MirrorUpstream => Some(git::refs::patch(object)), diff --git a/crates/radicle-remote-helper/src/push.rs b/crates/radicle-remote-helper/src/push.rs index 527da28c..953513b0 100644 --- a/crates/radicle-remote-helper/src/push.rs +++ b/crates/radicle-remote-helper/src/push.rs @@ -637,7 +637,7 @@ where )?; if let Some(upstream) = upstream { - if let Some(local_branch) = opts.branch.to_branch_name(&patch) { + if let Some(local_branch) = opts.branch.into_branch_name(&patch) { fn strip_refs_heads(qualified: git::fmt::Qualified) -> git::fmt::RefString { let (_refs, _heads, x, xs) = qualified.non_empty_components(); std::iter::once(x).chain(xs).collect()