File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
lib/overcommit/hook/commit_msg
spec/overcommit/hook/commit_msg Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ module Overcommit::Hook::CommitMsg
2
2
# Ensures the commit message follows a specific format.
3
3
class MessageFormat < Base
4
4
def run
5
- return :fail , "Empty message not allowed." if empty_message?
6
-
7
5
error_msg = validate_pattern ( commit_message_lines . join ( "\n " ) )
8
6
return :fail , error_msg if error_msg
9
7
Original file line number Diff line number Diff line change 10
10
context . stub ( :empty_message? ) . and_return ( commit_msg . empty? )
11
11
end
12
12
13
- context 'when commit message is empty' do
14
- let ( :commit_msg ) { '' }
15
-
16
- it { should fail_hook }
17
- end
18
-
19
13
context 'when pattern is empty' do
20
14
let ( :config ) do
21
15
super ( ) . merge ( Overcommit ::Configuration . new (
You can’t perform that action at this time.
0 commit comments