diff options
author | iTitou <moiandme@gmail.com> | 2021-01-31 17:56:52 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-21 15:55:44 +1100 |
commit | d334d781e1ec66dfdd1d165dfb481916639dccaf (patch) | |
tree | 9f2433e8446b5f67ececb3e2802db62d901851fd /tools/verifygitlog.py | |
parent | 03a64f20771cd0582af61de31811294456fa695e (diff) |
tools/verifygitlog.py: Show required format regexp in error message.
Signed-off-by: iTitou <moiandme@gmail.com>
Diffstat (limited to 'tools/verifygitlog.py')
-rwxr-xr-x | tools/verifygitlog.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/verifygitlog.py b/tools/verifygitlog.py index 0080b96bf..cc4b80f4a 100755 --- a/tools/verifygitlog.py +++ b/tools/verifygitlog.py @@ -57,8 +57,9 @@ def verify(sha): # Subject line. subject_line = raw_body[0] very_verbose("subject_line", subject_line) - if not re.match(r"^[^!]+: [A-Z]+.+ .+\.$", subject_line): - error("Subject line should contain ': ' and end in '.': " + subject_line) + subject_line_format = r"^[^!]+: [A-Z]+.+ .+\.$" + if not re.match(subject_line_format, subject_line): + error("Subject line should match " + repr(subject_line_format) + ": " + subject_line) if len(subject_line) >= 73: error("Subject line should be 72 or less characters: " + subject_line) |