From: Jim Meyering Date: Fri, 31 Aug 2012 10:52:08 +0000 (+0200) Subject: scripts: fix the Signed-off-by:-prohibiting hook to actually work X-Git-Tag: v8.20~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e4300e9263f81bee969db8a7ab135436fdf9ede;p=thirdparty%2Fcoreutils.git scripts: fix the Signed-off-by:-prohibiting hook to actually work * scripts/git-hooks/commit-msg: Fix new test: we're searching a multi-line buffer, so add the //m modifier. --- diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index f867331d2c..56286d4860 100755 --- a/scripts/git-hooks/commit-msg +++ b/scripts/git-hooks/commit-msg @@ -125,7 +125,7 @@ sub check_msg($$) $buf =~ m!https?://debbugs\.gnu\.org/(?:cgi/bugreport\.cgi\?bug=)?(\d+)!s and return "use shorter http://bugs.gnu.org/$1"; - $buf =~ /^ *Signed-off-by:/i + $buf =~ /^ *Signed-off-by:/mi and return q(do not use "Signed-off-by:"); return '';