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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy