summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-11-06 06:34:49 -0800
committerJim Meyering <meyering@fb.com>2017-11-07 20:16:55 -0800
commit95bfb362924d09d57de27dc9d4003fa4f64f69f5 (patch)
tree8df377d95a98fe5bd46558ed4584304016cb52f0 /scripts
parent9d88182ce1bca71b270eace3f5ebbcfe220d0712 (diff)
downloadcoreutils-95bfb362924d09d57de27dc9d4003fa4f64f69f5.tar.gz
maint: make hook script reject "/archive/html" in lists.gnu.org URLS
* scripts/git-hooks/commit-msg: Require the abbreviated "/r/" form in any log message URL.
Diffstat (limited to 'scripts')
-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:");