mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-07-29 12:21:15 +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:
@ -130,6 +130,9 @@ sub check_msg($$)
|
|||||||
$buf =~ m!https?://debbugs\.gnu\.org/(?:cgi/bugreport\.cgi\?bug=)?(\d+)!s
|
$buf =~ m!https?://debbugs\.gnu\.org/(?:cgi/bugreport\.cgi\?bug=)?(\d+)!s
|
||||||
and return "use shorter https://bugs.gnu.org/$1";
|
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
|
$buf =~ /^ *Signed-off-by:/mi
|
||||||
and return q(do not use "Signed-off-by:");
|
and return q(do not use "Signed-off-by:");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user