summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorDWesl <22566757+DWesl@users.noreply.github.com>2022-06-10 17:52:42 -0400
committerGitHub <noreply@github.com>2022-06-10 17:52:42 -0400
commit96fae83e36c67f90d6c3da64a936a06a0966e981 (patch)
tree8ea766ba32910b29b081a0e126656fbcc29c32b9 /git/util.py
parent044a8bf5549d92ede37ff034d9f0b4cd1a286c43 (diff)
downloadgitpython-96fae83e36c67f90d6c3da64a936a06a0966e981.tar.gz
BUG: Fix is_cygwin_git to return True on Cygwin.
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/util.py b/git/util.py
index 11139156..e55f15d3 100644
--- a/git/util.py
+++ b/git/util.py
@@ -377,7 +377,9 @@ def is_cygwin_git(git_executable: PathLike) -> bool:
def is_cygwin_git(git_executable: Union[None, PathLike]) -> bool:
- if not is_win:
+ if is_win:
+ # is_win seems to be true only for Windows-native pythons
+ # cygwin has os.name = posix, I think
return False
if git_executable is None: