Content-Length: 274465 | pFad | http://github.com/gitpython-developers/GitPython/commit/b1289eeb3676e63f4261518655ee90808e9d3d1f

45 it's is_file(), not isfile() · gitpython-developers/GitPython@b1289ee · GitHub
Skip to content

Commit b1289ee

Browse files
committed
it's is_file(), not isfile()
1 parent 22d6284 commit b1289ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def _is_cygwin_git(git_executable: str) -> bool:
465465
# Just a name given, not a real path.
466466
uname_cmd = osp.join(git_dir, "uname")
467467

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)):
469469
_logger.debug(f"Failed checking if running in CYGWIN: {uname_cmd} is not an executable")
470470
_is_cygwin_cache[git_executable] = is_cygwin
471471
return is_cygwin
@@ -490,6 +490,7 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...
490490

491491

492492
def is_cygwin_git(git_executable: Union[None, PathLike]) -> bool:
493+
_logger.debug(f"{sys.platform=}, {git_executable=}")
493494
if sys.platform != "cygwin":
494495
return False
495496
elif git_executable is None:

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gitpython-developers/GitPython/commit/b1289eeb3676e63f4261518655ee90808e9d3d1f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy