aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-hooks')
-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 e6b38bb21..3dbddc63d 100755
--- a/scripts/git-hooks/commit-msg
+++ b/scripts/git-hooks/commit-msg
@@ -130,6 +130,9 @@ sub check_msg($$)
$buf =~ m!https?://debbugs\.gnu\.org/(?:cgi/bugreport\.cgi\?bug=)?(\d+)!s
and return "use shorter https://bugs.gnu.org/$1";
+ $buf =~ m!https://lists\.gnu\.org/archive/html/!s
+ and return "use '/r/' in place of '/archive/html/' in lists.gnu.org URLs";
+
$buf =~ /^ *Signed-off-by:/mi
and return q(do not use "Signed-off-by:");