summaryrefslogtreecommitdiffstats
path: root/gitlint/rules.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-04-19 13:27:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-04-19 13:28:19 +0000
commita4dc387bfbc56ba97701bfdde34b033ada9bb5c1 (patch)
tree3e2e000f25057e78e8789657216afe02f28d9946 /gitlint/rules.py
parentReleasing debian version 0.15.0-1. (diff)
downloadgitlint-a4dc387bfbc56ba97701bfdde34b033ada9bb5c1.tar.xz
gitlint-a4dc387bfbc56ba97701bfdde34b033ada9bb5c1.zip
Merging upstream version 0.15.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint/rules.py')
-rw-r--r--gitlint/rules.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlint/rules.py b/gitlint/rules.py
index 3dc85b7..db21e56 100644
--- a/gitlint/rules.py
+++ b/gitlint/rules.py
@@ -290,7 +290,7 @@ class BodyMissing(CommitRule):
# ignore merges when option tells us to, which may have no body
if self.options['ignore-merge-commits'].value and commit.is_merge_commit:
return
- if len(commit.message.body) < 2:
+ if len(commit.message.body) < 2 or not ''.join(commit.message.body).strip():
return [RuleViolation(self.id, "Body message is missing", None, 3)]