Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
it's is_file(), not isfile()
  • Loading branch information
gcmarx committed May 22, 2025
commit b1289eeb3676e63f4261518655ee90808e9d3d1f
3 changes: 2 additions & 1 deletion git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def _is_cygwin_git(git_executable: str) -> bool:
# Just a name given, not a real path.
uname_cmd = osp.join(git_dir, "uname")

if not (pathlib.Path(uname_cmd).isfile() and os.access(uname_cmd, os.X_OK)):
if not (pathlib.Path(uname_cmd).is_file() and os.access(uname_cmd, os.X_OK)):
_logger.debug(f"Failed checking if running in CYGWIN: {uname_cmd} is not an executable")
_is_cygwin_cache[git_executable] = is_cygwin
return is_cygwin
Expand All @@ -490,6 +490,7 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...


def is_cygwin_git(git_executable: Union[None, PathLike]) -> bool:
_logger.debug(f"{sys.platform=}, {git_executable=}")
if sys.platform != "cygwin":
return False
elif git_executable is None:
Expand Down
Loading