mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
97306a2bfa
This will be run when using repo upload from a chromiumos checkout and reminds developers that Cq-Depend cannot be used with crosvm. BUG=b:226975263 TEST=./tools/chromeos/check_cq_depend Change-Id: Ib9cafaba181cb2103838369123e6c1288e653486 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3651674 Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Dmitry Torokhov <dtor@chromium.org> Tested-by: Dennis Kempin <denniskempin@google.com>
13 lines
442 B
Bash
Executable file
13 lines
442 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
commit=${1:-HEAD}
|
|
|
|
if git show -q "$commit" | grep -i "Cq-Depend:" > /dev/null; then
|
|
echo "Commit $commit contains Cq-Depend in the message."
|
|
echo "Cq-Depend cannot be used on the crosvm repository."
|
|
echo "See README.chromeos.md"
|
|
exit 1
|
|
fi
|