tools/verifygitlog.py: Allow long co-author and sign-off names.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
This commit is contained in:
committed by
Damien George
parent
51b821ce82
commit
4208970451
@@ -105,8 +105,12 @@ def verify_message_body(raw_body, err):
|
|||||||
|
|
||||||
# Message body lines.
|
# Message body lines.
|
||||||
for line in raw_body[2:]:
|
for line in raw_body[2:]:
|
||||||
# Long lines with URLs are exempt from the line length rule.
|
# Long lines with URLs or human names are exempt from the line length rule.
|
||||||
if len(line) >= 76 and "://" not in line:
|
if len(line) >= 76 and not (
|
||||||
|
"://" in line
|
||||||
|
or line.startswith("Co-authored-by: ")
|
||||||
|
or line.startswith("Signed-off-by: ")
|
||||||
|
):
|
||||||
err.error("Message lines should be 75 or less characters: " + line)
|
err.error("Message lines should be 75 or less characters: " + line)
|
||||||
|
|
||||||
if not raw_body[-1].startswith("Signed-off-by: ") or "@" not in raw_body[-1]:
|
if not raw_body[-1].startswith("Signed-off-by: ") or "@" not in raw_body[-1]:
|
||||||
|
|||||||
Reference in New Issue
Block a user