diff options
author | Jim Meyering <meyering@redhat.com> | 2012-08-31 12:52:08 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-31 13:09:27 +0200 |
commit | 1e4300e9263f81bee969db8a7ab135436fdf9ede (patch) | |
tree | cf1ed03cab82d494cd6348b61bfca55e6bf510cc | |
parent | badfa5bd0c5193276f469e8023cb23738eecf83a (diff) | |
download | coreutils-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.
-rwxr-xr-x | scripts/git-hooks/commit-msg | 2 |
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 ''; |