projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
badfa5b
)
scripts: fix the Signed-off-by:-prohibiting hook to actually work
author
Jim Meyering
<meyering@redhat.com>
Fri, 31 Aug 2012 10:52:08 +0000
(12:52 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Fri, 31 Aug 2012 11:09:27 +0000
(13:09 +0200)
* 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
patch
|
blob
|
history
diff --git
a/scripts/git-hooks/commit-msg
b/scripts/git-hooks/commit-msg
index
f867331
..
56286d4
100755
(executable)
--- 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:/
m
i
and return q(do not use "Signed-off-by:");
return '';