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

invalid option error with WSL1 #111

Open
xiaok opened this issue Sep 16, 2020 · 1 comment
Open

invalid option error with WSL1 #111

xiaok opened this issue Sep 16, 2020 · 1 comment

Comments

@xiaok
Copy link

xiaok commented Sep 16, 2020

I installed newest wslgit release and add it to PATH.

wsl1: Ubuntu 18.04LTS
git version in wsl1 : git version 2.17.1

image

wslgit
/bin/bash: - : invalid option

@andy-5
Copy link
Owner

andy-5 commented Sep 17, 2020

Did you make any changes to .bashrc or similar startup scripts? Or do you use a different shell like zsh or fish in WSL?

As a quick test to debug this, you could try to run something like the following

wsl -e bash -c "git version"

and see if that works. This command is basically what wslgit runs internally.

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

2 participants