We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b68ebf1 + e349ade commit 9c62b0cCopy full SHA for 9c62b0c
lib/overcommit/hook/commit_msg/message_format.rb
@@ -2,8 +2,6 @@ module Overcommit::Hook::CommitMsg
2
# Ensures the commit message follows a specific format.
3
class MessageFormat < Base
4
def run
5
- return :fail, "Empty message not allowed." if empty_message?
6
-
7
error_msg = validate_pattern(commit_message_lines.join("\n"))
8
return :fail, error_msg if error_msg
9
spec/overcommit/hook/commit_msg/message_format_spec.rb
@@ -10,12 +10,6 @@
10
context.stub(:empty_message?).and_return(commit_msg.empty?)
11
end
12
13
- context 'when commit message is empty' do
14
- let(:commit_msg) { '' }
15
16
- it { should fail_hook }
17
- end
18
19
context 'when pattern is empty' do
20
let(:config) do
21
super().merge(Overcommit::Configuration.new(
0 commit comments