BUG: Fix is_cygwin_git to return True on Cygwin. · gitpython-developers/GitPython@96fae83

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 96fae83

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

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)