awaescher / RepoZ

👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements
MIT License
1.01k stars 91 forks source link

In git bash `grr cd` doesn't work and `grr gd` returns a windows style path #121

Open JKrag opened 4 years ago

JKrag commented 4 years ago

I am running Windows 10, and using the latest (5.4) version of RepoZ. When I try to run a grr cd command, it prints out the matching single repo:

$ grr cd virtual
 virtual-environments   master ≡

but doesn't perform the actual directory change. (Exit code is 0.)

I then tried running grr gd (as a test to see if I at least could for instance a cd $(grr gd <reponame>) workaround in an alias, but it turns out that grr gd returns the path in windows style, e.g. "C:/Users/jkrag/source/repos/virtual-environments/".

I thought that this might be the reason, but now that I actually tested, it turns out that if I try to manually cd to that windows path (with or without the quotes) then it actually works.

The behavior above is seen in both the "Git Bash" terminal (mingw64), in the new Windows terminal configured with Git Bash and in Hyper terminal running the Git Bash.

Can anyone else confirm whether grr cd works is this environment or doesn't?

awaescher commented 4 years ago

I can confirm this does not work with MINGW64. I'll have a look at this in a free minute.