Skip to content

Investigate Windows path expansion in warnings - #447

Merged
max-sixty merged 1 commit into
mainfrom
claude/investigate-windows-path-expansion-bWJtS
Jan 6, 2026
Merged

max-sixty merged 1 commit into
mainfrom
claude/investigate-windows-path-expansion-bWJtS

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

On Windows, shells resolve executables to full absolute paths in argv[0] (e.g., C:\Users...\git-wt.exe), which made the shell integration warning confusing and noisy.

Changes:

  • Extract filename from argv[0] using Path::file_name() instead of showing full path (normalize \ to / for cross-platform compatibility)
  • Detect when the only difference is .exe suffix and give targeted advice: "use git-wt (without .exe) for auto-cd"

Fixes #348

@max-sixty
max-sixty enabled auto-merge (squash) January 6, 2026 19:46
@max-sixty
max-sixty force-pushed the claude/investigate-windows-path-expansion-bWJtS branch 5 times, most recently from 4e1e085 to 4bcda22 Compare January 6, 2026 22:12
On Windows, shells resolve executables to full absolute paths in argv[0]
(e.g., C:\Users\...\git-wt.exe), which made the shell integration warning
confusing and noisy.

Changes:
- Extract filename from argv[0] using Path::file_name() instead of
  showing full path (normalize \ to / for cross-platform compatibility)
- Detect when the only difference is .exe suffix and give targeted
  advice: "use git-wt (without .exe) for auto-cd"

Fixes #348
@max-sixty
max-sixty force-pushed the claude/investigate-windows-path-expansion-bWJtS branch from 4bcda22 to 205b50d Compare January 6, 2026 22:20
@max-sixty
max-sixty merged commit 73d5327 into main Jan 6, 2026
@max-sixty
max-sixty deleted the claude/investigate-windows-path-expansion-bWJtS branch January 6, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to change directory on Windows GitBash with chell integration enabled

2 participants