tools/verifygitlog.py: Disallow a leading slash in commit subject line.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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 "/".')
|
||||
|
||||
Reference in New Issue
Block a user