poetry-core
poetry-core copied to clipboard
Fix issue with creating new projects on Windows
The previous code contained a bug where git couldn't reside in a relative subdirectory.
This change allows git to be installed in the user directory while avoiding git.exe from being injected via the current directory
For example the package manager scoop installes git.exe at %userprofile%/scoop/shims/git.exe which would previously cause poetry to fail.
I'd be also willing to write some code to enumerate %PATH% to find git.exe instead of using where.exe. That would fix an additional edge case of having the current directory in PATH with git.exe in it and it also being the cwd.
Resolves: python-poetry/poetry#7320
- [ ] Added tests for changed code.
- [x] Updated documentation for changed code.
Do we want a regression test?
Do we want a regression test?
We always want a test if it is feasible. 😄