Display the correct git push flag when force-pushing (#30818)
When I force pushed via the Git panel and noticed that `git push --force` command got logged at the bottom. I wanted to add an option to use `--force-with-lease` instead. However, upon investigation, it seems `--force-with-lease` is already being used for the executed command:5112fcebeb/crates/git/src/repository.rs (L1100)
And there is a mismatch with the displayed message:5112fcebeb/crates/project/src/git_store.rs (L3555)
Release Notes: - Fixed the displayed flag name when force pushing
This commit is contained in:
parent
df98d94a24
commit
88fb623efa
1 changed files with 1 additions and 1 deletions
|
@ -3549,7 +3549,7 @@ impl Repository {
|
|||
let args = options
|
||||
.map(|option| match option {
|
||||
PushOptions::SetUpstream => " --set-upstream",
|
||||
PushOptions::Force => " --force",
|
||||
PushOptions::Force => " --force-with-lease",
|
||||
})
|
||||
.unwrap_or("");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue