summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-08-31 12:52:08 +0200
committerJim Meyering <meyering@redhat.com>2012-08-31 13:09:27 +0200
commit1e4300e9263f81bee969db8a7ab135436fdf9ede (patch)
treecf1ed03cab82d494cd6348b61bfca55e6bf510cc /scripts
parentbadfa5bd0c5193276f469e8023cb23738eecf83a (diff)
downloadcoreutils-1e4300e9263f81bee969db8a7ab135436fdf9ede.tar.xz
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git-hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
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 '';