-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL & Worktree issue : Not a git repositiory #1789
Comments
|
The issue arises due to mixing UNIX and Win32 executable using absolute paths. While the Exception is (just) bad error handling, the underlying issue persists. The subsequent (forward) resolution to the origin Git directory is also using relative paths |
Starting with Git v2.48 there is now an option to use relative paths when using worktrees. |
Git is set up, just like this: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git
I am using WSL Ubuntu 24.04.
Windows and Linux both have Git in Version 2.47.1
This error doesn't appear on Windows, just from WSL.
Steps to reproduce: (Works with all repos i think)
Open Wsl.
make a dir to work in and cd into it.
git clone https://github.com/routerdieb/java11TxtTimebox main
cd main
git worktree add ../test123
cd ..
cd test123
git pull (or git push doesnt matter here)
The text was updated successfully, but these errors were encountered: