Skip to content

Commit 1f0177c

Browse files
BogayLee-W
authored andcommitted
fix(Check): process empty commit message
`elif self.commit_msg` will be skipped if the commit message is empty string, but this should be handled.
1 parent 6493fe2 commit 1f0177c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/commands/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _get_commits(self):
8989
with open(self.commit_msg_file, "r", encoding="utf-8") as commit_file:
9090
msg = commit_file.read()
9191
# Get commit message from command line (--message)
92-
elif self.commit_msg:
92+
elif self.commit_msg is not None:
9393
msg = self.commit_msg
9494
if msg is not None:
9595
msg = self._filter_comments(msg)

0 commit comments

Comments
 (0)