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
Prev Previous commit
Next Next commit
don't keep checking if sys.platform isn't 'cygwin'
  • Loading branch information
gcmarx committed May 22, 2025
commit 3f5a942be8293bb8c663631756885f877afc22e7
2 changes: 1 addition & 1 deletion git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...


def is_cygwin_git(git_executable: Union[None, PathLike]) -> bool:
if sys.platform == "win32": # TODO: See if we can use `sys.platform != "cygwin"`.
if sys.platform != "cygwin":
return False
elif git_executable is None:
return False
Expand Down