2020-12-24 20:06:38 +01:00
|
|
|
#!/usr/bin/env sh
|
2020-05-10 20:09:31 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2016-12-22 18:54:55 +01:00
|
|
|
#
|
|
|
|
# DESCR: Check for a signed-off-by line on the latest git commit
|
|
|
|
|
|
|
|
# This test is mainly for the jenkins server
|
2018-01-17 00:05:48 +01:00
|
|
|
if [ -n "$(command -v git)" ] && \
|
|
|
|
[ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
|
|
|
|
then
|
2016-12-22 18:54:55 +01:00
|
|
|
if [ -z "$(git log -n 1 | grep '[[:space:]]\+Signed-off-by: ')" ]; then
|
|
|
|
echo "No Signed-off-by line in commit message"
|
|
|
|
fi
|
|
|
|
fi
|