Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f5a942

Browse files
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

git/util.py

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)