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-25 12:56:31 +02:00
parent 3a9c8b7144
commit b809bd3d73
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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)