mystor / phlay

Phlay your commits onto Phabricator
19 stars 17 forks source link

Handle Windows path returned from git when running phlay in Windows Subsystem for Linux. #41

Closed jcsteh closed 5 years ago

jcsteh commented 6 years ago

Because WSL file system access is slow, it might be necessary to use Windows git instead of WSL git for large repositories; e.g. mozilla-central. However, you might still wish to run most tools (including phlay) directly in WSL. In this case, paths returned from git will be Windows paths, but phlay needs a Unix path for the top level directory. Therefore, detect this case and translate the path using wslpath.

This is a rather obscure use case (most people would either run everything in WSL or everything in Windows), so I totally understand if you don't want to merge this. However, I thought I'd submit it anyway in case it's useful to someone else.

mystor commented 5 years ago

Released as 0.1.5