1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 22:24:51 +02:00
Files
lazygit/pkg/gui
Stefan Haller e858bad3f8 Fix lazygit getting unresponsive when pasting commits that become empty
Whenever git returns the error "The previous cherry-pick is now empty", we would
previously continue the rebase; this works for rebase because it behaves the
same as "git rebase --skip" in this case. That's not true for cherry-pick
though; if you continue a cherry-pick where the current commit is empty, it will
return the same error again, causing lazygit to be stuck in an endless loop.

Fix this by skipping instead of continuing; this shouldn't make a difference for
rebase, but works for cherry-pick.

Theoretically we could have a similar problem for revert (if you are trying to
revert a commit that has already been undone through some other means); this
should then be fixed in the same way with this change. However, the change is
not relevant for revert because git returns a different error in this case.
2025-10-14 12:27:32 +02:00
..
2025-07-08 16:41:22 +02:00
2024-08-24 10:36:01 +02:00
2025-10-14 12:17:13 +02:00
2025-10-09 08:45:58 +02:00
2025-07-08 15:14:45 +02:00
2025-10-09 08:45:58 +02:00
2025-05-06 09:43:26 +02:00
2025-10-14 12:17:13 +02:00
2025-06-05 13:20:38 +02:00
2025-10-14 12:17:13 +02:00
2025-09-05 10:42:03 +02:00