1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2025-07-29 12:21:15 +03:00

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.
This commit is contained in:
Jim Meyering
2012-08-31 12:52:08 +02:00
parent badfa5bd0c
commit 1e4300e926

View File

@ -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 '';