summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-05-10 10:24:02 +0200
committerJim Meyering <meyering@redhat.com>2012-05-10 11:02:46 +0200
commit53276320df7f072d271e44a528c6b5ef1aca554d (patch)
treeaa9b8ccf1bc5ee6c9f7b88c089e9e6cad9102e04 /scripts
parent9d308df13271a852aee7d46c65432fa84145ea31 (diff)
downloadcoreutils-53276320df7f072d271e44a528c6b5ef1aca554d.tar.xz
scripts: encourage use of shorter "bugs.gnu.org" in bug URLs
* scripts/git-hooks/commit-msg: Also ding debbugs.gnu.org URLs.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git-hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
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 '';