diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index a5e409071..f867331d2 100755 --- a/scripts/git-hooks/commit-msg +++ b/scripts/git-hooks/commit-msg @@ -125,6 +125,9 @@ 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 + and return q(do not use "Signed-off-by:"); + return ''; }