mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
Renders were kept from refreshing git's index because a pty-rendered command on Windows is terminated at an arbitrary instruction when its task stops, and one landing in the window where git holds index.lock to write back refreshed stat information leaves that lock behind. A render no longer runs in a pty there, and nothing kills it any more either: the pipe to the renderer breaks, git's write fails, and git dies through its own die path with its lock files cleaned up. So let the refresh happen, and let renders heal stale stat info the way they do everywhere else. The teardown of a pseudoconsole took its reassurance about index.lock from this, and renders were the reason it held. What still runs in a pty there is a custom command asking for logWithPty and a command that may be asked for a credential, so the claim no longer follows; drop it rather than restate it for clients it was never about. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>