utils/lint.sh: add more detailed error message

Signed-off-by: Drew DeVault <sir@cmpwn.com>
This commit is contained in:
Drew DeVault 2024-03-25 17:54:11 +01:00
parent 0a2132f33d
commit 5da205387a

View File

@ -2,7 +2,9 @@
signoff() {
if ! git log --format='%b' HEAD^.. | grep 'Signed-off-by' >/dev/null
then
echo "Missing sign-off" >&2
echo "Missing sign-off!" >&2
echo "Run 'git commit --amend -s' to fix" >&2
echo "See CONTRIBUTING.md" >&2
return 1
fi
}