1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-23 12:18:51 +02:00
lazygit/pkg/gui/controllers
Stefan Haller aac2535104 Ask to force push if server rejected the update, if remote not stored locally
This broke with 81b497d186 (#3387). In that PR I claimed that we never want to
ask for force-pushing if the server rejected the update, on the assumption that
this can only happen because the remote tracking branch is not up to date, and
users should just fetch in this case. However, I didn't realize it's even
possible to have a branch whose upstream branch is not stored locally; in this
case we can't tell ahead of time whether a force push is going to be necessary,
so we _have_ to rely on the server response to find out. But we only want to do
that in this specific case, so this is not quite an exact revert of 81b497d186.
2024-06-01 08:12:45 +02:00
..
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:52 +10:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2023-04-30 13:19:53 +10:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00
2022-04-02 17:04:42 +11:00
2023-04-30 13:19:53 +10:00
2024-04-18 10:10:30 +02:00
2024-04-18 10:10:30 +02:00