diff options
author | Zachary Turner <zturner@google.com> | 2017-05-24 00:28:46 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-05-24 00:28:46 +0000 |
commit | 69916e12b35952b1f1afe55f315b778a549163e2 (patch) | |
tree | 1dcadc96fe953139b6e949e6f9d90c2f440aec2f /utils/git-svn | |
parent | d448c732cb50091866bfa1e08aaa0a59f3c03188 (diff) |
git-llvm script should add .exe on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/git-svn')
-rwxr-xr-x | utils/git-svn/git-llvm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/git-svn/git-llvm b/utils/git-svn/git-llvm index 26f8f4da95b..975b8480601 100755 --- a/utils/git-svn/git-llvm +++ b/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 |