File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ def _is_cygwin_git(git_executable: str) -> bool:
465
465
# Just a name given, not a real path.
466
466
uname_cmd = osp .join (git_dir , "uname" )
467
467
468
- if not (pathlib .Path (uname_cmd ).isfile () and os .access (uname_cmd , os .X_OK )):
468
+ if not (pathlib .Path (uname_cmd ).is_file () and os .access (uname_cmd , os .X_OK )):
469
469
_logger .debug (f"Failed checking if running in CYGWIN: { uname_cmd } is not an executable" )
470
470
_is_cygwin_cache [git_executable ] = is_cygwin
471
471
return is_cygwin
@@ -490,6 +490,7 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...
490
490
491
491
492
492
def is_cygwin_git (git_executable : Union [None , PathLike ]) -> bool :
493
+ _logger .debug (f"{ sys .platform = } , { git_executable = } " )
493
494
if sys .platform != "cygwin" :
494
495
return False
495
496
elif git_executable is None :
You can’t perform that action at this time.
0 commit comments