From d434b01c7e589b721c7969d7dfc6a25f99bdc23b Mon Sep 17 00:00:00 2001 From: mtklein Date: Wed, 10 Aug 2016 07:30:58 -0700 Subject: Roll GN: gn format is --in-place by default As usual, might as well roll, and this new behavior is a small convenience. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2231833002 Review-Url: https://codereview.chromium.org/2231833002 --- PRESUBMIT.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'PRESUBMIT.py') diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 95fea4f8db..3fd8314f0b 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -196,10 +196,9 @@ def _CheckGNFormatted(input_api, output_api): try: subprocess.check_output(cmd) except subprocess.CalledProcessError: - fix = cmd[:] - fix[2] = '--in-place' + fix = 'gn format ' + f.LocalPath() results.append(output_api.PresubmitError( - '`%s` failed, try\n\t%s' % (' '.join(cmd), ' '.join(fix)))) + '`%s` failed, try\n\t%s' % (' '.join(cmd), fix))) return results -- cgit v1.2.3