diff --git a/git_cache.py b/git_cache.py index b60073e97..66f5f8660 100755 --- a/git_cache.py +++ b/git_cache.py @@ -155,6 +155,11 @@ class Mirror(object): target = os.path.abspath(os.path.expanduser(target)) if os.path.isfile(target) and os.access(target, os.X_OK): return target + if sys.platform.startswith('win'): + for suffix in ('.bat', '.cmd', '.exe'): + alt_target = target + suffix + if os.path.isfile(alt_target) and os.access(target, os.X_OK): + return alt_target return None @classmethod