tools/verifygitlog.py: Disallow a leading slash in commit subject line.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-05-13 12:35:49 +10:00
parent 3b1e22c669
commit 51b821ce82

View File

@@ -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 "/".')