[BUG] A Git Update broke Claude Code session
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
During a session, I received a notification to update my Git installation (Windows11). After completion, the current session of claude code broke with these messages
Skipping command-line '"C:\Program Files\Git\bin\..\usr\bin\bash.exe"'
('C:\Program Files\Git\bin\..\usr\bin\bash.exe' not found)
Need a valid command-line; Edit the string resources accordingly
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Command failed: cygpath -u '*******WORKINGPATH*******'
Skipping command-line '"C:\Program Files\Git\bin\..\usr\bin\bash.exe"'
('C:\Program Files\Git\bin\..\usr\bin\bash.exe' not found)
Need a valid command-line; Edit the string resources accordingly
at genericNodeError (node:child_process:1010:22)
at checkExecSyncError (node:child_process:470:27)
at execSync (node:child_process:278:31)
at xK (B:/~BUN/root/claude.exe:88:432)
at B4 (B:/~BUN/root/claude.exe:3758:8270)
at SMH (B:/~BUN/root/claude.exe:3596:3824)
at <anonymous> (B:/~BUN/root/claude.exe:3594:7267)
at <anonymous> (B:/~BUN/root/claude.exe:3594:7965)
at map (native:1:11)
at nx1 (B:/~BUN/root/claude.exe:3594:7139)
What Should Happen?
Claude should handle this without breaking the session
Error Messages/Logs
at genericNodeError (node:child_process:1010:22)
at checkExecSyncError (node:child_process:470:27)
at execSync (node:child_process:278:31)
at xK (B:/~BUN/root/claude.exe:88:432)
at B4 (B:/~BUN/root/claude.exe:3758:8270)
at SMH (B:/~BUN/root/claude.exe:3596:3824)
at <anonymous> (B:/~BUN/root/claude.exe:3594:7267)
at <anonymous> (B:/~BUN/root/claude.exe:3594:7965)
at map (native:1:11)
at nx1 (B:/~BUN/root/claude.exe:3594:7139)
Steps to Reproduce
- open a claude code session
- trigger an update of git by calling cygpath from claude
- error
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.46 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗