tools/verifygitlog.py: Disallow a leading slash in commit subject line.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
3b1e22c669
commit
51b821ce82
1 changed files with 2 additions and 2 deletions
|
|
@ -116,8 +116,8 @@ def verify_message_body(raw_body, err):
|
|||
def verify_subject_line_prefix(prefix, err):
|
||||
ext = (".c", ".h", ".cpp", ".js", ".rst", ".md")
|
||||
|
||||
if prefix.startswith("."):
|
||||
err.error('Subject prefix cannot begin with ".".')
|
||||
if prefix.startswith((".", "/")):
|
||||
err.error('Subject prefix cannot begin with "." or "/".')
|
||||
|
||||
if prefix.endswith("/"):
|
||||
err.error('Subject prefix cannot end with "/".')
|
||||
|
|
|
|||
Loading…
Reference in a new issue