mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
If the repo that lazygit has open is deleted while lazygit is running, the next full refresh panics. The same happens for a linked worktree that is deleted. In both cases `git for-each-ref` fails because its working directory is gone, and BranchLoader panics when that happens. Return the error instead. The branches refresh logs it, like it does with the other errors it gets from loading the branches. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>