[BUG] CLAUDE_CODE_GIT_BASH_PATH required
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?
Claude Code does not start anymore and does not even show the version string.
I have git and Claude Code works just fine with it, but the auto-update installed a broken Claude Code version, which demands CLAUDE_CODE_GIT_BASH_PATH to be set. I don't need that variable. It worked fine.
It only starts, when the Variable is set. But Claude Code could easily find it in the second default target directory, which is not the one it prints in its message: AppData path.
What Should Happen?
It should just start. Claude Code should not even rely on git bash as a dependency.
It is able to use 'bash' already and it is able to use 'git' already.
Just print the claude version, for that example. (Why do I have to set git-bash.exe in a Variable to show claude --version?)
Error Messages/Logs
Steps to Reproduce
claude --version
Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.110 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗