hooks:commit-msg: Visually separate error message

The warning is quickly overread when in the same paragraph as git's
normal output.
This commit is contained in:
2024-10-16 14:36:41 +02:00
parent 72770f6703
commit 09a7497432

View File

@@ -41,7 +41,7 @@ body="$(
if [[ ${#subject} -gt 60 ]]; then
die "Subject too long. (<= 60)"
elif [[ ${#subject} -gt 50 ]]; then
>&2 printf "%s: Subject exceeds recommendation of 50 characters!\n" "$0"
>&2 printf "%s: Subject exceeds recommendation of 50 characters!\n\n" "$0"
fi
# The subject line has to match "${pats[@]}", but to be more verbose different