Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
BUG: Fix is_cygwin_git to return True on Cygwin.
  • Loading branch information
DWesl authored Jun 10, 2022
commit 96fae83e36c67f90d6c3da64a936a06a0966e981
4 changes: 3 additions & 1 deletion git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down