diff options
Diffstat (limited to 'Meta/lint-commit.sh')
-rwxr-xr-x | Meta/lint-commit.sh | 5 |
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 |