| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -463,7 +463,13 @@ def _is_cygwin_git(git_executable: str) -> bool: | |||
| 463 | 463 | git_dir = osp.dirname(res[0]) if res else "" | |
| 464 | 464 | ||
| 465 | 465 | # Just a name given, not a real path. | |
| 466 | + # Let's see if the same path has uname | ||
| 466 | 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 | + | ||
| 467 | 473 | process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True) | |
| 468 | 474 | uname_out, _ = process.communicate() | |
| 469 | 475 | # retcode = process.poll() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments