don't keep checking if sys.platform isn't 'cygwin' · gitpython-developers/GitPython@3f5a942

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 3f5a942

committed

don't keep checking if sys.platform isn't 'cygwin'

1 parent 7187984 commit 3f5a942

File tree

1 file changed

+

1

-

1

lines changed

1 file changed

+

1

-

1

lines changed

Lines changed: 1 addition & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -490,7 +490,7 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...

490490
491491
492492

def is_cygwin_git(git_executable: Union[None, PathLike]) -> bool:

493-

if sys.platform == "win32": # TODO: See if we can use `sys.platform != "cygwin"`.

493+

if sys.platform != "cygwin":

494494

return False

495495

elif git_executable is None:

496496

return False

0 commit comments

Comments

 (0)