Skip to content

Commit 51b821c

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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy