From 53276320df7f072d271e44a528c6b5ef1aca554d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 10 May 2012 10:24:02 +0200 Subject: scripts: encourage use of shorter "bugs.gnu.org" in bug URLs * scripts/git-hooks/commit-msg: Also ding debbugs.gnu.org URLs. --- scripts/git-hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/git-hooks/commit-msg') diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index e1bb3820e..3c1c63d0f 100755 --- a/scripts/git-hooks/commit-msg +++ b/scripts/git-hooks/commit-msg @@ -122,7 +122,7 @@ sub check_msg($$) $buf =~ m!https?://bugzilla\.redhat\.com/show_bug\.cgi\?id=(\d+)!s and return "use shorter http://bugzilla.redhat.com/$1"; - $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 http://bugs.gnu.org/$1"; return ''; -- cgit v1.2.3-54-g00ecf