From 371725820ef598f8f48fd0bf0f4e16b1abb74db3 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 12 May 2018 19:26:52 +0200 Subject: [PATCH] Fix for the commit message validation #21 --- dev/hooks/utils/message_validation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/hooks/utils/message_validation.py b/dev/hooks/utils/message_validation.py index 88cba7cd..73404468 100644 --- a/dev/hooks/utils/message_validation.py +++ b/dev/hooks/utils/message_validation.py @@ -24,6 +24,8 @@ def __init__(self, msg): def validate_title(title): + if not title: + raise ValidationError('Commit message should have at least one line (the title), with any hash(#) appearing at the end') if title[0] in string.ascii_lowercase: raise ValidationError('Commit message title should start with a capital letter') if title[-1] == '.':