diff options
author | Jim Meyering <meyering@redhat.com> | 2012-05-10 10:24:02 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-05-10 11:02:46 +0200 |
commit | 53276320df7f072d271e44a528c6b5ef1aca554d (patch) | |
tree | aa9b8ccf1bc5ee6c9f7b88c089e9e6cad9102e04 /scripts | |
parent | 9d308df13271a852aee7d46c65432fa84145ea31 (diff) | |
download | coreutils-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-x | scripts/git-hooks/commit-msg | 2 |
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 ''; |