diff options
author | borenet <borenet@chromium.org> | 2016-04-25 11:22:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-25 11:22:41 -0700 |
commit | 7bedaf5606c49f7a81c46605959f5bcd36054c82 (patch) | |
tree | d76f05566004ef2e1e2ad1efbe835991c54384ea /tools | |
parent | 8d965a612e3963e039fa19e74c09d942398c611a (diff) |
build_command_buffer: Don't 'git checkout' when --no-sync
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1915063002
Review URL: https://codereview.chromium.org/1915063002
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build_command_buffer.py | 13 |
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'], |