Skip to content

Commit 58ff723

Browse files
committed
Revert "check for the existence/execute bit on the uname command before trying to run it"
This reverts commit de5e57c.
1 parent 428be1a commit 58ff723

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

git/util.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,7 @@ def _is_cygwin_git(git_executable: str) -> bool:
463463
git_dir = osp.dirname(res[0]) if res else ""
464464

465465
# Just a name given, not a real path.
466-
# Let's see if the same path has uname
467466
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-
473467
process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True)
474468
uname_out, _ = process.communicate()
475469
# retcode = process.poll()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy