From 046b6e34ee6b53e274f03b59c895df40494eb923 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 16 Jul 2023 16:06:09 +0200 Subject: contrib: update sendemail-validate hook With git 2.41, git send-email exports a patch counter to the validate hook. Copy the example hook from git and adapt it for aerc. Link: https://github.com/git/git/commit/3c8d3adeae83 Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- contrib/check-patches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/check-patches') diff --git a/contrib/check-patches b/contrib/check-patches index 20291eb6..3ae2e834 100755 --- a/contrib/check-patches +++ b/contrib/check-patches @@ -26,7 +26,7 @@ for rev in $(git rev-list --reverse "$revision_range"); do body=$(git log --format='%b' -1 "$rev") body=${body%$(git log --format='%(trailers)' -1 "$rev")} if [ "$(echo "$body" | wc -w)" -lt 3 ]; then - echo "error [PATCH $n/$total] '$title' body has less than three words, please elaborate" >&2 + echo "error [PATCH $n/$total] '$title' body has less than three words, please describe your changes" >&2 fail=true fi -- cgit