aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar borenet <borenet@chromium.org>2016-04-25 11:22:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-25 11:22:41 -0700
commit7bedaf5606c49f7a81c46605959f5bcd36054c82 (patch)
treed76f05566004ef2e1e2ad1efbe835991c54384ea /tools
parent8d965a612e3963e039fa19e74c09d942398c611a (diff)
build_command_buffer: Don't 'git checkout' when --no-sync
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build_command_buffer.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/build_command_buffer.py b/tools/build_command_buffer.py
index 88748d6789..ee325878d4 100755
--- a/tools/build_command_buffer.py
+++ b/tools/build_command_buffer.py
@@ -114,14 +114,13 @@ def main():
sys.exit('Error (ret code: %s) calling "%s" in %s' % (error.returncode,
error.cmd, chrome_src_dir))
- try:
- subprocess.check_call(['git', 'checkout', args.chrome_revision],
- cwd=chrome_src_dir)
- except subprocess.CalledProcessError as error:
- sys.exit('Error (ret code: %s) calling "%s" in %s' % (error.returncode,
- error.cmd, chrome_src_dir))
+ try:
+ subprocess.check_call(['git', 'checkout', args.chrome_revision],
+ cwd=chrome_src_dir)
+ except subprocess.CalledProcessError as error:
+ sys.exit('Error (ret code: %s) calling "%s" in %s' % (error.returncode,
+ error.cmd, chrome_src_dir))
- if not args.no_sync:
try:
os.environ['GYP_GENERATORS'] = 'ninja'
subprocess.check_call([gclient, 'sync', '--reset', '--force'],