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

Commitf3ab5d3

Browse files
committed
incorporate review feedback from@EliahKagan
1 parent1731c1e commitf3ab5d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎git/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...
490490

491491

492492
defis_cygwin_git(git_executable:Union[None,PathLike])->bool:
493-
_logger.debug(f"sys.platform ={sys.platform}, git_executable ={git_executable}")
493+
# TODO: when py3.7 support is dropped, use the new interpolation f"{variable=}"
494+
_logger.debug(f"sys.platform={sys.platform!r}, git_executable={git_executable!r}")
494495
ifsys.platform!="cygwin":
495496
returnFalse
496497
elifgit_executableisNone:

‎test/test_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ class TestIsCygwinGit:
354354
"""Tests for :func:`is_cygwin_git`"""
355355

356356
deftest_on_path_executable(self):
357+
# Currently we assume tests run on Cygwin use Cygwin git. See #533 and #1455 for background.
357358
ifsys.platform=="cygwin":
358359
assertis_cygwin_git("git")
359360
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp