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

Commite8343e2

Browse files
committed
Firm up comment about is_win in util.is_cygwin_git
The is_cygwin_git function returns False when we have is_win,because is_win is not True on Cygwin systems. The existing commentexplained why, but was tentative. The claims are accurate, so thisrewrites the comment to state it more definitively.
1 parentcd16a35 commite8343e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎git/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ def is_cygwin_git(git_executable: PathLike) -> bool:
419419

420420
defis_cygwin_git(git_executable:Union[None,PathLike])->bool:
421421
ifis_win:
422-
# is_win seems to be true only for Windows-native pythons
423-
# cygwin has os.name = posix, I think
422+
# is_win is only True on native Windows systems. On Cygwin, os.name == "posix".
424423
returnFalse
425424

426425
ifgit_executableisNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp