From 55d26875b39585fa51d63b5f1e678e474b69fbad Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 6 Sep 2017 13:18:06 +0200 Subject: [PATCH] lint-stable: Only check files tracked by git (ie source files) for +x Change-Id: I99cbcba7a086ef950f248888a83cf24a4db4aee9 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/21419 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Paul Menzel --- util/lint/lint-stable-012-executable-bit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lint/lint-stable-012-executable-bit b/util/lint/lint-stable-012-executable-bit index 5e12c956ca..e7ff3cb64b 100755 --- a/util/lint/lint-stable-012-executable-bit +++ b/util/lint/lint-stable-012-executable-bit @@ -16,5 +16,5 @@ # DESCR: Check that source files are not executable LC_ALL=C export LC_ALL -find src -type f -a \( -perm -100 -o -perm -010 -o -perm -001 \) -a \! -name '*.sh'| \ +git ls-tree --full-tree -r HEAD src |grep "^100[7531][7531][7531] blob " |cut -f2- |grep -v "\.sh$" | \ sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.,"