From 1e4300e9263f81bee969db8a7ab135436fdf9ede Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 31 Aug 2012 12:52:08 +0200 Subject: 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. --- scripts/git-hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index f867331d2..56286d486 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 ''; -- cgit v1.2.3-70-g09d2