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.19k stars 59 forks source link

git show path is not quoted when it contains space-character #94

Closed carlolars closed 4 years ago

carlolars commented 4 years ago

The following commands fails since the path is not quoted.

>wslgit show :path/with space/file.txt
fatal: Path 'path/with' does not exist (neither on disk nor in the index).
>wslgit show develop:path/with space/file.txt
fatal: Path 'path/with' does not exist in 'develop'
carlolars commented 4 years ago

This is weird, I saw this error at work. It was caused by the VSCode extension GitLens, but it works as expected at home.

carlolars commented 4 years ago

I have looked into this some more now and I would say that wslgit behaves as expected, there must be something in the GitLens extension that caue the error which is missing blame information in the editor for the current row.

(btw my examples above where incorrect, if quoting correctly then it works as expected :) )