check_commits allow for indented SOB lines
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
fi
done
-exit 0
+exec gitk "$@"
--- /dev/null
+#!/bin/bash
+
+subject="Signed-off-by missing for commit in the BRANCH tree"
+
+tools_dir=$(dirname "$0")
+"$tools_dir"/message_helper "$@" "$subject" <<EOF
+Commit
+
+ ("")
+
+is missing a Signed-off-by from its .
+EOF
+
+exit 0