diff options
Diffstat (limited to 'scripts/git-hooks')
| -rwxr-xr-x | scripts/git-hooks/commit-msg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index da094c95a..bdea8c38d 100755 --- a/scripts/git-hooks/commit-msg +++ b/scripts/git-hooks/commit-msg @@ -136,6 +136,12 @@ sub check_msg($$) $buf =~ m!https://lists\.gnu\.org/archive/html/!s and return "use '/r/' in place of '/archive/html/' in lists.gnu.org URLs"; + $buf =~ m!https?://(?:.*\.)?sourceware\.org/bugzilla/show_bug\.cgi\?id=(\d+)!s + and return "use shorter https://sourceware.org/PR$1"; + + $buf =~ m!https?://gcc\.gnu\.org/bugzilla/show_bug\.cgi\?id=(\d+)!s + and return "use shorter https://gcc.gnu.org/PR$1"; + return ''; } |
