vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Git not working in remote WSL

Open scrossan-crown opened this issue 7 years ago • 6 comments

  • VSCode Version: 1.36.0
  • Local OS Version: Windows 10
  • Remote OS Version: Ubuntu
  • Remote Extension/Connection Type: WSL

Steps to Reproduce:

  1. Open VS Code, open remote wsl in new window
  2. Add folders to work space

Even though they are git repos and have a .git folder the source control view shows No source control providers registered

image

Does this issue occur when you try this locally?: Yes/No Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

scrossan-crown avatar Jul 04 '19 09:07 scrossan-crown

Git output

Looking for git in: git
Using git 2.22.0 from git
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --show-toplevel

scrossan-crown avatar Jul 04 '19 09:07 scrossan-crown

I experienced similar issue today:

  • VSCode Version: 1.37.0
  • Local OS Version: Windows 10
  • Remote OS Version: Ubuntu (only installed distro)
  • Remote Extension/Connection Type: WSL 1

Changes made to files did not get reflected in Git version control in the UI. However, every time I restarted VScode the changes would be reflected (i.e., you can't see any saved changes made since the latest restart).

lukechen526 avatar Aug 24 '19 14:08 lukechen526

@scrossan-crown

Can you still reproduce this issue?

joaomoreno avatar Nov 29 '19 10:11 joaomoreno

Same here. Since the introduction of remote wsl, I never saw any git interaction. I still need to reopen the directory in Windows to make use of it.

However I might have an idea. When I uncomment git.path=e:\\path\\to\\portable\\git.exe in my settings it seems to work.

The question is, how can I keep the path setting on windows while have it disabled in wsl?

darkmattercoder avatar Dec 03 '19 11:12 darkmattercoder

Hey @joaomoreno, this issue might need further attention.

@scrossan-crown, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Sep 25 '20 12:09 github-actions[bot]

I'm using remote WSL full time and git works fine.

@darkmattercoder In Remote WSL you must use git inside WSL, not the Windows one.

joaomoreno avatar Sep 30 '20 07:09 joaomoreno