Skip to content

Commit 59c3c80

Browse files
committed
Fix missing path conversion
1 parent 5d26325 commit 59c3c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/repo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def __init__(
219219
# Given how the tests are written, this seems more likely to catch Cygwin
220220
# git used from Windows than Windows git used from Cygwin. Therefore
221221
# changing to Cygwin-style paths is the relevant operation.
222-
epath = cygpath(str(epath))
222+
epath = cygpath(epath if isinstance(epath, str) else epath.__fspath__())
223223

224224
epath = epath or path or os.getcwd()
225225
if not isinstance(epath, str):

0 commit comments

Comments
 (0)