# Display the correct git push flag when force-pushing \(\#30818\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/88fb623efa28c346a655aa0fb798a88a78fafcb6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 88fb623efa28c346a655aa0fb798a88a78fafcb6

Requested commit: 88fb623efa28c346a655aa0fb798a88a78fafcb6

Commit: 88fb623efa28c346a655aa0fb798a88a78fafcb6

Tree: 5786a6757b3c111c8b976cf7f835079f064f7525

Author: Tymoteusz Makowski

Committer: GitHub

## Message

```
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:


https://github.com/zed-industries/zed/blob/5112fcebeb365fab385b90b0954fe0bcb338ce63/crates/git/src/repository.rs#L1100

And there is a mismatch with the displayed message:


https://github.com/zed-industries/zed/blob/5112fcebeb365fab385b90b0954fe0bcb338ce63/crates/project/src/git_store.rs#L3555

Release Notes:

- Fixed the displayed flag name when force pushing
```

## Parents

- [df98d94a24cb79184d44e6970ca4658a572f361b](https://git.cafe/gitcafe/zed/commit/df98d94a24cb79184d44e6970ca4658a572f361b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/88fb623efa28c346a655aa0fb798a88a78fafcb6?format=markdown)
