summaryrefslogtreecommitdiffstats
path: root/tools/bisect_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bisect_utils.py')
-rw-r--r--tools/bisect_utils.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/bisect_utils.py b/tools/bisect_utils.py
index 353867d..0439d76 100644
--- a/tools/bisect_utils.py
+++ b/tools/bisect_utils.py
@@ -28,6 +28,7 @@ solutions = [
},
]
"""
+GCLIENT_SPEC = ''.join([l for l in GCLIENT_SPEC.splitlines()])
def OutputAnnotationStepStart(name):
@@ -76,8 +77,15 @@ def RunGClient(params):
Returns:
The return code of the call.
"""
+ if os.name == 'nt':
+ # "HOME" isn't normally defined on windows, but is needed
+ # for git to find the user's .netrc file.
+ if not os.getenv('HOME'):
+ os.environ['HOME'] = os.environ['USERPROFILE']
+
+ shell = os.name == 'nt'
cmd = ['gclient'] + params
- return subprocess.call(cmd)
+ return subprocess.call(cmd, shell=shell)
def RunGClientAndCreateConfig():