Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Make `rad patch checkout` idempotent
cloudhead committed 2 years ago
commit d0fdd0b6a3e12e6a402055df22a2dedd494bc730
parent b953e9f6b57089c162773fa9384b1a3d7df148a5
1 file changed +1 -1
modified radicle-cli/src/commands/patch/checkout.rs
@@ -26,7 +26,7 @@ pub fn run(
    let commit = find_patch_commit(&patch, &patch_branch, stored, working)?;

    // Create patch branch and switch to it.
-
    working.branch(patch_branch.as_str(), &commit, false)?;
+
    working.branch(patch_branch.as_str(), &commit, true)?;
    working.checkout_tree(commit.as_object(), None)?;
    working.set_head(&git::refs::workdir::branch(&patch_branch))?;