| Index: gcl.py
|
| diff --git a/gcl.py b/gcl.py
|
| index f2f976c2aace640781dcb94adcf0847c11311301..38899518c8df11e2cfeeb9ede2e2c15306ab87d9 100755
|
| --- a/gcl.py
|
| +++ b/gcl.py
|
| @@ -607,7 +607,7 @@ Basic commands:
|
| [--send_mail] [--no_try] [--no_presubmit]
|
| Uploads the changelist to the server for review.
|
|
|
| - gcl commit change_name [--force]
|
| + gcl commit change_name [--no_presubmit] [--force]
|
| Commits the changelist to the repository.
|
|
|
| gcl lint change_name
|
| @@ -1023,11 +1023,13 @@ def DoPresubmitChecks(change_info, committing):
|
| """Imports presubmit, then calls presubmit.DoPresubmitChecks."""
|
| # Need to import here to avoid circular dependency.
|
| import presubmit_support
|
| + root_presubmit = GetCachedFile('PRESUBMIT.py', use_root=True)
|
| result = presubmit_support.DoPresubmitChecks(change_info,
|
| committing,
|
| verbose=False,
|
| output_stream=sys.stdout,
|
| - input_stream=sys.stdin)
|
| + input_stream=sys.stdin,
|
| + default_presubmit=root_presubmit)
|
| if not result:
|
| print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)"
|
| return result
|
|
|