-
Notifications
You must be signed in to change notification settings - Fork 100
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
gerrit plugin does not work for WSL2 projects #408
Comments
I do not have such a setup available to test. If you do have any suspicions what could cause the issues here, feedback would be very welcome. |
I assume that the gerrit plugin is using the "normal" project path as seen by Windows: |
Thanks for your feedback. Do you know if any other Git operation executed directly by IntelliJ works as expected? Do only plugin triggered Git operations fail? |
Yes, it seems that way: |
IDEA is clever enough to open projects correctly even if they are in the WSL2 file system (using the \wsl$.., path prefix).
For git operations it then directly uses the git client installed in the wsl subsystem.
However when I try to check out a gerrit change using the plugin, then the project path is wrong and the operations fails with "Invalid reference: FETCH_HEAD". From IDEAs git Console log:
IDEA executes that command directly in wsl2/Ubuntu, so paths there should not contain the "//wsl$/Ubuntu-20.04" prefix.
When I try this on the wsl2 command line, it works fine:
The text was updated successfully, but these errors were encountered: