Mike Frysinger | 8fbf2c5 | 2022-09-13 04:34:23 -0400 | [diff] [blame] | 1 | # Copyright 2019 The ChromiumOS Authors |
Shuhei Takahashi | 8e07789 | 2019-10-08 12:32:18 +0900 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | """Hook to stop people from running `git cl`.""" |
| 6 | |
| 7 | from __future__ import print_function |
| 8 | |
| 9 | import sys |
| 10 | |
| 11 | |
| 12 | def CheckChangeOnUpload(_input_api, _output_api): |
| 13 | print('ERROR: CrOS repos use `repo upload`, not `git cl upload`.', |
| 14 | file=sys.stderr) |
| 15 | sys.exit(1) |