From: Stephen Rothwell Date: Sun, 5 Nov 2017 20:53:21 +0000 (+1100) Subject: no_sig: send messages about missing SOB lines X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=2c472e3c10825b42c3c190110a37ca6dd01b2b64;p=next-scripts no_sig: send messages about missing SOB lines check_commits allow for indented SOB lines --- diff --git a/check_commits b/check_commits index d82c18a..6fc5265 100755 --- a/check_commits +++ b/check_commits @@ -14,7 +14,7 @@ for c in $(git rev-list --no-merges "$@"); do cE=$(git log -1 --format='%cE' "$c") cn=$(git log -1 --format='%cn' "$c") cN=$(git log -1 --format='%cN' "$c") - sob=$(git log -1 --format='%b' "$c" | grep -i 'Signed-off-by') + sob=$(git log -1 --format='%b' "$c" | grep -i '^[[:space:]]*Signed-off-by:') am=false cm=false @@ -37,4 +37,4 @@ for c in $(git rev-list --no-merges "$@"); do fi done -exit 0 +exec gitk "$@" diff --git a/no_sig b/no_sig new file mode 100755 index 0000000..491517e --- /dev/null +++ b/no_sig @@ -0,0 +1,14 @@ +#!/bin/bash + +subject="Signed-off-by missing for commit in the BRANCH tree" + +tools_dir=$(dirname "$0") +"$tools_dir"/message_helper "$@" "$subject" <