10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799dc6d commit 106c294Copy full SHA for 106c294
commitizen/commands/commit.py
@@ -66,7 +66,7 @@ def prompt_commit_questions(self) -> str:
66
message = cz.message(answers)
67
message_len = len(message.partition("\n")[0].strip())
68
message_length_limit: int = self.arguments.get("message_length_limit", 0)
69
- if message_length_limit > 0 and message_len > message_length_limit:
+ if 0 < message_length_limit < message_len:
70
raise CommitMessageLengthExceededError(
71
f"Length of commit message exceeds limit ({message_len}/{message_length_limit})"
72
)
0 commit comments