Skip to content

Commit 96fae83

Browse files
authored
BUG: Fix is_cygwin_git to return True on Cygwin.
1 parent 044a8bf commit 96fae83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git/util.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ def is_cygwin_git(git_executable: PathLike) -> bool:
377377

378378

379379
def is_cygwin_git(git_executable: Union[None, PathLike]) -> bool:
380-
if not is_win:
380+
if is_win:
381+
# is_win seems to be true only for Windows-native pythons
382+
# cygwin has os.name = posix, I think
381383
return False
382384

383385
if git_executable is None:

0 commit comments

Comments
 (0)