1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-01-27 14:02:50 +03:00
Files
lazygit/pkg
Stefan Haller d3804d313c Fix a problem with refreshing while an update-ref todo is selected
Scenario:
- show the files of a commit, escape out of it again
- start an interactive rebase of a stack of branches, with the rebase.updateRefs
  git config set to true
- select one of the update-ref todos
- trigger a refresh (either manually or by bringing lazygit's terminal window to
  the front)

This results in an error message "fatal: ambiguous argument '': unknown revision
or path not in the working tree."

Fix this by putting another band-aid on the check for the commit files refresh.

This is the easiest way to fix the problem, but I don't think it's the best one.
We shouldn't be refreshing the commit files context at all if it isn't visible,
because it's pointless; there's no way to switch to it again except by calling
viewFiles again with a specific ref. But I'm too lazy too figure out how to do
that right now.
2024-02-16 13:01:04 +01:00
..
2023-09-04 17:48:39 +02:00
2024-01-28 08:12:01 +11:00
2023-02-26 12:54:13 +11:00
2024-02-13 09:10:15 -06:00
2023-07-30 19:59:51 +10:00
2022-12-30 12:18:59 +11:00
2024-01-26 11:18:06 +01:00