8000
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 ec00872 commit de5e57cCopy full SHA for de5e57c
git/util.py
@@ -463,7 +463,13 @@ def _is_cygwin_git(git_executable: str) -> bool:
463
git_dir = osp.dirname(res[0]) if res else ""
464
465
# Just a name given, not a real path.
466
+ # Let's see if the same path has uname
467
uname_cmd = osp.join(git_dir, "uname")
468
+ if not (osp.isfile(uname_cmd) and os.access(uname_cmd, os.X_OK)):
469
+ _logger.debug(f"File {uname_cmd} either does not exist or is not executable.")
470
+ _is_cygwin_cache[git_executable] = is_cygwin
471
+ return is_cygwin
472
+
473
process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True)
474
uname_out, _ = process.communicate()
475
# retcode = process.poll()
0 commit comments