Mike Frysinger | c40e52f | 2019-08-02 11:04:17 -0400 | [diff] [blame] | 1 | # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| 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 | |
| 10 | def CheckChangeOnUpload(_input_api, _output_api): |
Alex Klein | 1699fab | 2022-09-08 08:46:06 -0600 | [diff] [blame] | 11 | print( |
| 12 | "ERROR: CrOS repos use `repo upload`, not `git cl upload`.", |
| 13 | file=sys.stderr, |
| 14 | ) |
| 15 | sys.exit(1) |