github.com/nya3jp/tast@v0.0.0-20230601000426-85c8e4d83a9b/PRESUBMIT.py (about)

     1  # Copyright 2019 The ChromiumOS Authors
     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  import sys
     8  
     9  USE_PYTHON3 = True
    10  
    11  def CheckChangeOnUpload(_input_api, _output_api):
    12    print('ERROR: CrOS repos use `repo upload`, not `git cl upload`.',
    13          file=sys.stderr)
    14    sys.exit(1)