summaryrefslogtreecommitdiff
path: root/Meta/lint-commit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/lint-commit.sh')
-rwxr-xr-xMeta/lint-commit.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Meta/lint-commit.sh b/Meta/lint-commit.sh
index 6242b67299..1df284f930 100755
--- a/Meta/lint-commit.sh
+++ b/Meta/lint-commit.sh
@@ -46,5 +46,10 @@ while read -r line; do
if [[ $line_length -gt 72 ]] && (echo "$line" | grep -P -v -q "$url_pattern"); then
error "Commit message lines are too long (maximum allowed is 72 characters)"
fi
+
+ if [[ "$line" == "Signed-off-by: "* ]]; then
+ error "Commit body contains a Signed-off-by tag"
+ fi
+
done <"$commit_file"
exit 0