I'm using VS Code and a workspace on a Windows network drive via SSHFS. There's no issue here, it works without any problem.
However, I've decided to version my code and finally start using Git. I've created my first repository and via SSH on my remote machine, I did a "git init". VS Code immediately detected that my project was a Git repository, but the default functions are not working. I'm getting an error message like this in the console:
2023-04-06 09:30:16.665 [info] > git ls-files --stage -- Z:\site\monfichier.php [3351ms]
2023-04-06 09:30:16.665 [info] fatal: Z:\site\monfichier.php: 'Z:\site\monfichier.php' is outside repository at '//sshfs/USER@IP!PORT/'
It seems that VS Code is not working on the relative path of the project but the absolute path, and the Windows drive is not the same as the SSHFS root.
How can I fix this issue?