Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py

Issue 2818223002: Change GitCL to initialize git executable name on Windows. (Closed)
Patch Set: - Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
index 5c03c13dc05b6e6a2aa3bf33d8376e09364b0a65..a291236d8a1cc4fd999e4047477bf9a878d4eb58 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
@@ -13,6 +13,7 @@ import logging
import re
from webkitpy.common.net.buildbot import Build, filter_latest_builds
+from webkitpy.common.checkout.git import Git
_log = logging.getLogger(__name__)
@@ -27,10 +28,11 @@ class GitCL(object):
self._host = host
self._auth_refresh_token_json = auth_refresh_token_json
self._cwd = cwd
+ self._git_executable_name = Git.find_executable_name(host.executive, host.platform)
def run(self, args):
"""Runs git-cl with the given arguments and returns the output."""
- command = ['git', 'cl'] + args
+ command = [self._git_executable_name, 'cl'] + args
if self._auth_refresh_token_json and args[0] in _COMMANDS_THAT_TAKE_REFRESH_TOKEN:
command += ['--auth-refresh-token-json', self._auth_refresh_token_json]
return self._host.executive.run_command(command, cwd=self._cwd)

Powered by Google App Engine
This is Rietveld 408576698