diff options
author | Jim Meyering <meyering@redhat.com> | 2012-08-30 13:07:10 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-30 13:12:44 +0200 |
commit | 19baf1679d175151acf8d0f3dafebc7c1ca5e417 (patch) | |
tree | 43652ff8315c3dbc36f476296f31d72ef511bb40 /scripts/git-hooks | |
parent | 812dfda461da1409dee6a7007d8d7fc9a5b8eb94 (diff) | |
download | coreutils-19baf1679d175151acf8d0f3dafebc7c1ca5e417.tar.xz |
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:".
Diffstat (limited to 'scripts/git-hooks')
-rwxr-xr-x | scripts/git-hooks/commit-msg | 3 |
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 ''; } |