[BUG] Won't detect Git Bash in user home directory, but detects everywhere else

Resolved 💬 3 comments Opened Mar 6, 2026 by ishaan-mehta Closed Mar 10, 2026

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?

When I run claude in my home directory, Claude says:

PS C:\Users\imehta> claude
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

When I run it in any subdirectory, it works fine:

PS C:\Users\imehta\Code> claude

 ▐▛███▜▌   Claude Code v2.1.58
▝▜█████▛▘  Opus 4.6 · Claude Enterprise
  ▘▘ ▝▝    ~\Code

What Should Happen?

It should work regardless of the directory it is being run in.

Error Messages/Logs

Steps to Reproduce

  1. Install Claude Code with native installation on Windows 11.
  2. Try to run from user home directory.

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.58

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗