Skip to content
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

wslgit add fails #62

Closed
bondib opened this issue Nov 28, 2018 · 6 comments
Closed

wslgit add fails #62

bondib opened this issue Nov 28, 2018 · 6 comments

Comments

@bondib
Copy link

bondib commented Nov 28, 2018

C:\Users\bondi\dev\WSIL\healthshield>wslgit.exe add -A -- c:\Users\bondi\dev\WSIL\healthshield\tasker\tasker\tasks\move_nodes.py

Results with:

fatal: /mnt/c/Users/bondi/dev/WSIL/healthshield/tasker/tasker/tasks/move_nodes.py: '/mnt/c/Users/bondi/dev/WSIL/healthshield/tasker/tasker/tasks/move_nodes.py' is outside repository

@andy-5
Copy link
Owner

andy-5 commented Nov 29, 2018

What is the output of wslgit.exe rev-parse --show-toplevel? This should print the root directory of the repository (I assume this would be c:\Users\bondi\dev\WSIL\healthshield).

@bondib
Copy link
Author

bondib commented Dec 2, 2018

The output is:

C:\Users\bondi\dev\WSIL\healthshield>C:\Users\bondi\dev\wslgit.exe rev-parse --show-toplevel

/c/Users/bondi/dev/WSIL/healthshield

@andy-5
Copy link
Owner

andy-5 commented Feb 5, 2019

Do you have any custom mount points configured, either via wsl.conf or for example in .bashrc?

Your problem looks like a duplicate of #42 or #60.

@andy-5
Copy link
Owner

andy-5 commented Feb 21, 2019

You could try the new experimental wslgit-mount-at-root.exe build from the latest release which should support your setup.

Can you please report back if this works for you?

@pjnovas
Copy link

pjnovas commented Jul 23, 2019

That one worked for me, I had tried wslgit.exe (release 0.7.0) adding the environment variable WSLGIT_MOUNT_ROOT to / and it didn't work, then used wslgit-mount-at-root.exe and worked out

My VSCode:

Version: 1.36.1 (user setup)
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:59:35.033Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

Thanks!

@andy-5
Copy link
Owner

andy-5 commented Jul 24, 2019

Thanks for the feedback, great to hear that the special build from release 0.7.0 works for you.

The WSLGIT_MOUNT_ROOT environment variable was only recently added and will be available in the upcoming 0.8.0 release. You can get an alpha build here if you want to try it.

@andy-5 andy-5 closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants