From a5ea9934cbec4caf5e530f4373f38faf5e1614cf Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Wed, 2 Feb 2022 14:32:43 -0700 Subject: 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 Change-Id: I60e676d106a4317966147302da863ad85e04f1c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3432912 Reviewed-by: Simon Glass Commit-Queue: Simon Glass --- util/check_allowed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1