1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2025-07-29 12:21:15 +03:00

scripts: git commit message hook: prohibit use of "Signed-off-by:"

* scripts/git-hooks/commit-msg: Reject a commit log message that
contains "Signed-off-by:".
This commit is contained in:
Jim Meyering
2012-08-30 13:07:10 +02:00
parent 812dfda461
commit 19baf1679d

View File

@ -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 '';
}