cli: Force push refs on patch open/update

This ensures that `patch update` does not fail in a non-fast-forward case.
This commit is contained in:
Alexis Sellier
2023-04-26 12:29:32 +02:00
parent 3a9c8b7144
commit b809bd3d73
+1 -1
View File
@@ -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)