From 812e82cf4fbac37af053c20f8414ba0bc16e91fa Mon Sep 17 00:00:00 2001 From: Pierre-Yves David Date: Sun, 12 Apr 2015 14:54:53 -0400 Subject: [PATCH] check-commit: be more picky about detection of wrong bug tag The check-commit script search for "bug" withing bracket and ask people to use (issueXXXX) instead. The test was too wide and matching any "(+b+u+g"sequence. --- contrib/check-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/check-commit b/contrib/check-commit index 40f26cfbfe..5e9e8e8b12 100755 --- a/contrib/check-commit +++ b/contrib/check-commit @@ -20,7 +20,7 @@ import re, sys, os errors = [ (r"[(]bc[)]", "(BC) needs to be uppercase"), (r"[(]issue \d\d\d", "no space allowed between issue and number"), - (r"[(]bug", "use (issueDDDD) instead of bug"), + (r"[(]bug(\d|\s)", "use (issueDDDD) instead of bug"), (r"^# User [^@\n]+$", "username is not an email address"), (r"^# .*\n(?!merge with )[^#]\S+[^:] ", "summary line doesn't start with 'topic: '"),