Claude Code v2.1.281 ·
Git branch probe distinguishes unreadable from unknown
Claude Code's check of the current git branch now says "unreadable" when git ran and failed, not "unknown"
EntryKind: in v2.1.281,
ChangesSection of the release
What
Claude Code asks git which branch you are on. When that fails, the answer now depends on how it failed:
unreadable when git ran and exited with an error
unknown when git gave no exit code at all
Before, both cases gave unknown.
Why
Claude Code can now tell a git command that ran and failed from one that never produced a result, so the two can be handled differently.
See this entry in the whole of v2.1.281 →