Thanks to visit codestin.com Credit goes to github.com
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 d57a513 commit 5d874ddCopy full SHA for 5d874dd
git/repo/base.py
@@ -29,6 +29,7 @@
29
from git.util import (
30
Actor,
31
finalize_process,
32
+ cygpath,
33
decygpath,
34
hex_to_bin,
35
expand_path,
@@ -175,7 +176,10 @@ def __init__(
175
176
if not epath:
177
epath = os.getcwd()
178
if Git.is_cygwin():
- epath = decygpath(epath)
179
+ # Given how the tests are written, this seems more likely to catch
180
+ # Cygwin git used from Windows than Windows git used from Cygwin.
181
+ # Therefore changing to Cygwin-style paths is the relevant operation.
182
+ epath = cygpath(epath)
183
184
epath = epath or path or os.getcwd()
185
if not isinstance(epath, str):
0 commit comments