mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-07-30 23:23:08 +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:
@ -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 '';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user