mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-04 15:53:30 +03:00
Merge pull request #3212 from gitbutlerapp/and-force-push-support-in-gitbutler-git
add force push support in gitbutler-git
This commit is contained in:
commit
1bd3fad3f6
@ -298,6 +298,7 @@ pub async fn push<P, F, Fut, E>(
|
||||
executor: E,
|
||||
remote: &str,
|
||||
refspec: RefSpec,
|
||||
force: bool,
|
||||
on_prompt: F,
|
||||
) -> Result<(), crate::Error<Error<E>>>
|
||||
where
|
||||
@ -313,6 +314,10 @@ where
|
||||
args.push(remote);
|
||||
args.push(&refspec);
|
||||
|
||||
if force {
|
||||
args.push("--force");
|
||||
}
|
||||
|
||||
let (status, stdout, stderr) =
|
||||
execute_with_auth_harness(repo_path, executor, &args, None, on_prompt).await?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user