From 2c472e3c10825b42c3c190110a37ca6dd01b2b64 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 6 Nov 2017 07:53:21 +1100 Subject: [PATCH] no_sig: send messages about missing SOB lines check_commits allow for indented SOB lines --- check_commits | 4 ++-- no_sig | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 no_sig 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" <