Mike Frysinger | f1ba7ad | 2022-09-12 05:42:57 -0400 | [diff] [blame] | 1 | # Copyright 2019 The ChromiumOS Authors |
Mike Frysinger | c40e52f | 2019-08-02 11:04:17 -0400 | [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 | |
Mike Frysinger | c40e52f | 2019-08-02 11:04:17 -0400 | [diff] [blame] | 7 | import sys |
| 8 | |
| 9 | |
Lizzy Presland | 2818e2b | 2022-12-17 00:05:51 +0000 | [diff] [blame] | 10 | USE_PYTHON3 = True |
| 11 | |
| 12 | |
Mike Frysinger | c40e52f | 2019-08-02 11:04:17 -0400 | [diff] [blame] | 13 | def CheckChangeOnUpload(_input_api, _output_api): |
Alex Klein | 1699fab | 2022-09-08 08:46:06 -0600 | [diff] [blame] | 14 | print( |
| 15 | "ERROR: CrOS repos use `repo upload`, not `git cl upload`.", |
| 16 | file=sys.stderr, |
| 17 | ) |
| 18 | sys.exit(1) |