summaryrefslogtreecommitdiff
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-hooks/commit-msg')
-rwxr-xr-xscripts/git-hooks/commit-msg3
1 files changed, 3 insertions, 0 deletions
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 '';
}