10000 tools/verifygitlog.py: Disallow a leading slash in commit subject line. · micropython/micropython@ac7d534 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac7d534

Browse files
committed
tools/verifygitlog.py: Disallow a leading slash in commit subject line.
Signed-off-by: Damien George <damien@micropython.org>
1 parent f77fd62 commit ac7d534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/verifygitlog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def verify_message_body(raw_body, err):
116116
def verify_subject_line_prefix(prefix, err):
117117
ext = (".c", ".h", ".cpp", ".js", ".rst", ".md")
118118

119-
if prefix.startswith("."):
120-
err.error('Subject prefix cannot begin with ".".')
119+
if prefix.startswith((".", "/")):
120+
err.error('Subject prefix cannot begin with "." or "/".')
121121

122122
if prefix.endswith("/"):
123123
err.error('Subject prefix cannot end with "/".')

0 commit comments

Comments
 (0)
0