2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check for a signed-off-by line on the latest commit
8 cd -- "$
(dirname "$0")" > /dev/null 2>&1 || return
12 # shellcheck source=helper_functions.sh
13 .
"${LINTDIR}/helper_functions.sh"
15 if [ "${IN_GIT_TREE}" -eq 0 ]; then
19 # This test is mainly for the jenkins server
20 if ! ${GIT} log
-n 1 |
grep -q '[[:space:]]\+Signed-off-by: '; then
21 echo "No Signed-off-by line in commit message"