1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2025-07-02 21:22:27 +03:00

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.
This commit is contained in:
Jim Meyering
2017-11-06 06:34:49 -08:00
parent 9d88182ce1
commit 95bfb36292

View File

@ -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:");