summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2022-02-02 14:32:43 -0700
committerCommit Bot <commit-bot@chromium.org>2022-02-03 04:03:07 +0000
commita5ea9934cbec4caf5e530f4373f38faf5e1614cf (patch)
treea302f1d92a2836c8ab0053cbefd0b33d8a9506e0
parentf54582cce7ca89f87d87bdb53778a709824f7eae (diff)
downloadchrome-ec-a5ea9934cbec4caf5e530f4373f38faf5e1614cf.tar.gz
check_allowed: Check git repository quietly
Suppress output from checking whether the build is running inside a git checkout. Also, do a little bit less work. BUG=none TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I60e676d106a4317966147302da863ad85e04f1c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3432912 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org>
-rwxr-xr-xutil/check_allowed.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check_allowed.sh b/util/check_allowed.sh
index 5212a55a14..57b8066d8f 100755
--- a/util/check_allowed.sh
+++ b/util/check_allowed.sh
@@ -91,7 +91,7 @@ if [ -s "${new_adhoc}" ]; then
else
# If we are running in a git repo, check if we can remove some things
# from the allowed file
- if git status 2>/dev/null; then
+ if git rev-parse --is-inside-work-tree 1>/dev/null 2>&1; then
./util/build_allowed.sh
fi
fi