You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to change directory on Windows GitBash with chell integration enabled #348
@NikiforovAll I think the problem is that the git wt cannot change directories, because git is called as a binary, and binaries can't change directories, only shell functions (which is why we need the shell function...)
❯ gwt switch -c test
◎ Running post-create project hook:
uv sync
✓ Created new worktree fortest from main @ ~\dev\lazyclaude.test
↳ Run wt config shell install to enable automatic cd
0.9.2 should now give better diagnostics on Windows
Two points:
Have a look at wt config show for diags without having to run wt switch etc
I think the problem is coming from aliasing with git-wt, but having a wt.exe binary in path. Instead, WinGet now installs a git-wt.exe, so the first block can be a very simple aliasing of gwt to git-wt.exe (but not 100% sure and would like wt to make this transparent itself...)
Activity
max-sixty commentedon Jan 1, 2026
thanks for the issue and the dotfiles link. let me try to repro today
Improve shell integration detection for git-wt command
max-sixty commentedon Jan 2, 2026
@NikiforovAll I think the problem is that the
git wtcannot change directories, becausegitis called as a binary, and binaries can't change directories, only shell functions (which is why we need the shell function...)The easiest thing to do would be to install
wtasgit-wtwithcargo install wt --features=git-wt, and then changegit wtat NikiforovAll/dotfiles2@0f27ff7#diff-e0b0f48ff9e674d431409e77916c55ecd027c260868c012d99e995ae83bc305cR124 togit-wt:As soon as microsoft/winget-pkgs#327395 merges, then the
cargoinstall isn't necessary — it'll install asgit-wtDoes that make sense? Let me know any issues. The messages from
wtshould now be much clearer, from #362.NikiforovAll commentedon Jan 2, 2026
Unfortunately, it doesn't work.
+Also,
Improve shell integration detection robustness (max-sixty#362)
Add RUNTIME section to `wt config show`
Add RUNTIME section to `wt config show` (#375)
max-sixty commentedon Jan 3, 2026
0.9.0 now has much much better diagnostics for what's going on, inspired by this issue.
wt config showalso gives some details underRUNTIMEwould you mind giving that a go? thanks for your patience @NikiforovAll
NikiforovAll commentedon Jan 3, 2026
no worries
fix: Windows Git Bash shell integration path handling
fix: Windows Git Bash shell integration path handling (#398)
test: add Windows-only test for issue #348 shell detection
test: add Windows-only test for issue #348 shell detection (#399)
max-sixty commentedon Jan 4, 2026
0.9.2 should now give better diagnostics on Windows
Two points:
wt config showfor diags without having to runwt switchetcgit-wt, but having awt.exebinary in path. Instead, WinGet now installs agit-wt.exe, so the first block can be a very simple aliasing ofgwttogit-wt.exe(but not 100% sure and would likewtto make this transparent itself...)thank you again @NikiforovAll !
16 remaining items
NikiforovAll commentedon Jan 6, 2026
on
9.4.0➕ updated (as part of onboarding flow when failed to cd as part of
git switch test):last line is auto-generated; I've removed other code that tried to achive similar
NikiforovAll commentedon Jan 6, 2026
New branch:
max-sixty commentedon Jan 6, 2026
hmmm...
git-wt switchwork?.exefrom the alias command & the eval work?max-sixty commentedon Jan 6, 2026
forany future travellers / agents, here is the text of the images above:
Image 1 (first screenshot in comment 3713651429):
Image 2 (second screenshot in comment 3713651429):
Image 3 (comment 3713652455):
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion
fix: improve shell integration warning for Windows path expansion (#447)