Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

Commit96fae83

Browse files
authored
BUG: Fix is_cygwin_git to return True on Cygwin.
1 parent044a8bf commit96fae83

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
defis_cygwin_git(git_executable:Union[None,PathLike])->bool:
380-
ifnotis_win:
380+
ifis_win:
381+
# is_win seems to be true only for Windows-native pythons
382+
# cygwin has os.name = posix, I think
381383
returnFalse
382384

383385
ifgit_executableisNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp