From b809bd3d736d51c517afdaeb867a69668d76f864 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Tue, 25 Apr 2023 12:56:31 +0200 Subject: [PATCH] cli: Force push refs on patch open/update This ensures that `patch update` does not fail in a non-fast-forward case. --- radicle-cli/src/commands/patch/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-cli/src/commands/patch/common.rs b/radicle-cli/src/commands/patch/common.rs index 4d7c2af9..626ab501 100644 --- a/radicle-cli/src/commands/patch/common.rs +++ b/radicle-cli/src/commands/patch/common.rs @@ -157,7 +157,7 @@ pub fn push_to_storage( let (mut remote, _) = radicle::rad::remote(working)?; remote - .push::<&str>(&[&branch], None) + .push::<&str>(&[&format!("+{branch}:{branch}")], None) .context("failed to push to storage")?; } Ok(branch)