You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.328,
ImprovementsSection of the release
What
Git leaves small lock files behind to mark that it is busy. If git stops unexpectedly, a stale lock can block later git commands until it is removed. Claude Code already had a cleanup that removes stale locks.
That cleanup used to look only in the top of the .git folder and in its refs, logs, worktrees and reftable folders. It now has a deeper mode that searches every folder under .git.
Why
More kinds of leftover lock files can be found and removed, so a checkout, notably one in a cloud environment, gets unstuck in more cases.