summaryrefslogtreecommitdiffstats
path: root/llvm/utils/git-svn/git-llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/git-svn/git-llvm')
-rwxr-xr-xllvm/utils/git-svn/git-llvm2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/git-svn/git-llvm b/llvm/utils/git-svn/git-llvm
index 26f8f4da95b..975b8480601 100755
--- a/llvm/utils/git-svn/git-llvm
+++ b/llvm/utils/git-svn/git-llvm
@@ -134,6 +134,8 @@ def svn(cwd, *cmd, **kwargs):
ignore_errors=kwargs.get('ignore_errors', None))
def program_exists(cmd):
+ if sys.platform == 'win32' and not cmd.endswith('.exe'):
+ cmd += '.exe'
for path in os.environ["PATH"].split(os.pathsep):
if os.access(os.path.join(path, cmd), os.X_OK):
return True
OpenPOWER on IntegriCloud