mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user