bug in Git in WSL projects

Using PhpStorm 2023.2 RC in Windows.

Projects on wsl2-vmhd. Git is installed in WSL (Ubuntu) and Windows.

Ubuntu-git works in commandline with bitbucket repository.
Windows-git works in commandline with bitbucket repository.

GUI based git actions in PhpStorm in a wsl projects are throwing this error:

Update failed /mnt/c/Users/masch/AppData/Local/JetBrains/PhpStorm2023.2/tmp/intellij-ssh-askpass-wsl-Ubuntu.sh: 3: /mnt/c/Users/masch/AppData/Local/JetBrains/Toolbox/apps/PhpStorm/ch-0/232.8660.153/jbr/bin/java.exe: Exec format error git@bitbucket.org: Permission denied (publickey). Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists.

Yesterday everything worked.

 

 

3
2 comments

Huh, I also did not change keys and got the same issue with Git wpengine and WSL (worked in past months)
- was trying to reset keys, generate them again and all - but still having the issue
- tried also downgrade to PhpStorm-2023.1.4 - also nothing happened

If I use terminal then I can Push/Fetch , but using GUI it fails every time in WSL (wpengine, gitlab any git)
- GUI works without issues in default Win environment with the same keys

17:43:24.028: [projectname] git -c core.quotepath=false -c log.showSignature=false push --progress --porcelain dev refs/heads/main:main --tags
/mnt/c/Users/X/AppData/Local/JetBrains/PhpStorm2023.2/tmp/intellij-ssh-askpass-wsl-Ubuntu-22.04.sh: 3: /mnt/c/Program Files/JetBrains/PhpStorm 2023.2/jbr/bin/java.exe: Exec format error
git@git.wpengine.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

 

0

Hi Aleksandar Perisic

This has been reported in: https://youtrack.jetbrains.com/issue/IDEA-327378/Remote-git-operations-from-wsl-project-do-not-work, the issue is currently being investigated, may you please follow it? 

1

Please sign in to leave a comment.