aboutsummaryrefslogtreecommitdiff
path: root/rh/hooks.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2016-09-03 02:04:19 -0400
committerMike Frysinger <vapier@google.com>2016-09-03 15:37:57 +0000
commitdd7d4e392ff8c93880f82f68273edd8c995ba276 (patch)
tree807a56aa3347c001f2a8d5512a201b2519495943 /rh/hooks.py
parent31a817c12a20d5184d0a6d0b919088402bdba43c (diff)
downloadrepohooks-dd7d4e392ff8c93880f82f68273edd8c995ba276.tar.gz
hooks: bug: allow None
Sometimes there just isn't a bug around, or it's not worth creating one. Bug: None Test: this commit is allowed to upload Change-Id: I2e1a3e241cdaad35f2d6365b037d2c49d6453de6
Diffstat (limited to 'rh/hooks.py')
-rw-r--r--rh/hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rh/hooks.py b/rh/hooks.py
index dc0f86b..5c7c6fb 100644
--- a/rh/hooks.py
+++ b/rh/hooks.py
@@ -127,7 +127,7 @@ def check_checkpatch(project, commit, desc, diff, options=()):
def check_commit_msg_bug_field(project, commit, desc, _diff, options=()):
"""Check the commit message for a 'Bug:' line."""
field = 'Bug'
- regex = r'^%s: [0-9]+(, [0-9]+)*$' % (field,)
+ regex = r'^%s: (None|[0-9]+(, [0-9]+)*)$' % (field,)
check_re = re.compile(regex)
if options: