summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-06-21 11:45:00 +0800
committerGitHub <noreply@github.com>2022-06-21 11:45:00 +0800
commitf0c6e1164f390081a27de952552aa83d34035f2a (patch)
treefcd116711c75c126c2fd083bb6a8c78ced5870ef /git/repo/base.py
parent6660b8463b86ea92ff56baebfcebc7c8a6e933fa (diff)
parent2996f402f11565c3ad93aedfe070f4f5f571e72e (diff)
downloadgitpython-f0c6e1164f390081a27de952552aa83d34035f2a.tar.gz
Merge pull request #1455 from DWesl/patch-1
Re-enable Cygwin CI and get most tests passing
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 111a350e..5a85cc4e 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -29,7 +29,7 @@ from git.remote import Remote, add_progress, to_progress_instance
from git.util import (
Actor,
finalize_process,
- decygpath,
+ cygpath,
hex_to_bin,
expand_path,
remove_password_if_present,
@@ -175,7 +175,10 @@ class Repo(object):
if not epath:
epath = os.getcwd()
if Git.is_cygwin():
- epath = decygpath(epath)
+ # Given how the tests are written, this seems more likely to catch
+ # Cygwin git used from Windows than Windows git used from Cygwin.
+ # Therefore changing to Cygwin-style paths is the relevant operation.
+ epath = cygpath(epath)
epath = epath or path or os.getcwd()
if not isinstance(epath, str):