ejoffe / spr

Stacked Pull Requests on GitHub
MIT License
714 stars 65 forks source link

Fails on windows under cygwin when determining git's root directory #407

Open anenviousguest opened 1 month ago

anenviousguest commented 1 month ago

On windows, when run in Cygwin environment, it fails like below:

git spr

git error: 
chdir /cygdrive/c/dev/sourceCode/temp-playground/spr: The system cannot find the path specified.

Process finished with the exit code 2

Apparently, git rev-parse ... command returns cygwin-based path because it uses Cygwin version of git. It would be optimal if the tool could take that into account.