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

Translating to windows path from the root of a mounted drive does not work #80

Closed carlolars closed 5 years ago

carlolars commented 5 years ago

translate_path_to_win() can not translate from the root of a mounted drive, for example the path /mnt/d does not translate to d:.

carlolars commented 5 years ago

translate_path_to_win() can not translate from the root of a mounted drive, for example the path /mnt/d does not translate to d:.

It should actually translate to d:/ for VSCode's git to work.

andy-5 commented 5 years ago

Good catch, and thanks for your patch, which I just merged.