Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5a942 commit 226f4ffCopy full SHA for 226f4ff
1 file changed
git/util.py
@@ -465,7 +465,7 @@ def _is_cygwin_git(git_executable: str) -> bool:
465
# Just a name given, not a real path.
466
uname_cmd = osp.join(git_dir, "uname")
467
468
- if not (pathlib.Path(uname_cmd).exists() and os.access(uname_cmd, os.X_OK)):
+ if not (pathlib.Path(uname_cmd).isfile() and os.access(uname_cmd, os.X_OK)):
469
_logger.debug(f"Failed checking if running in CYGWIN: {uname_cmd} is not an executable")
470
_is_cygwin_cache[git_executable] = is_cygwin
471
return is_cygwin
0 commit comments