We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d26325 commit 59c3c80Copy full SHA for 59c3c80
1 file changed
git/repo/base.py
@@ -219,7 +219,7 @@ def __init__(
219
# Given how the tests are written, this seems more likely to catch Cygwin
220
# git used from Windows than Windows git used from Cygwin. Therefore
221
# changing to Cygwin-style paths is the relevant operation.
222
- epath = cygpath(str(epath))
+ epath = cygpath(epath if isinstance(epath, str) else epath.__fspath__())
223
224
epath = epath or path or os.getcwd()
225
if not isinstance(epath, str):
0 commit comments