andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

Arguments after a double-dash are always treated as relative paths if… #102

Closed carlolars closed 4 years ago

carlolars commented 4 years ago

… they look like relative paths.

Fixes converting relative paths to non-existing files after a double-dash. #96

I've searched the documentation for the git commands for -- and as far as I can see this fix should work fine. Maybe there are some advanced use-cases that might be found later, but it has worked for me for the last few weeks.

andy-5 commented 4 years ago

Thanks! I also quickly looked through the documentation and think that converting after -- is fine. The need for unsafe is unfortunate, but let's keep it for now to keep the code simple. There is no real problem with it here.