File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 129
129
refute_line --partial " Limit the subject line to 50 characters"
130
130
}
131
131
132
+ @test " validation: ignores tag: prefix when checking subject line length" {
133
+ echo " n" > $FAKE_TTY
134
+ run git commit -m " tag: Add foo bar string to my_file"
135
+
136
+ assert_success
137
+ refute_line --partial " Limit the subject line to 50 characters"
138
+ }
139
+ @test " validation: ignores [<tag>] prefix when checking subject line length" {
140
+ echo " n" > $FAKE_TTY
141
+ run git commit -m " [tag] Add foo bar string to my_file"
142
+
143
+ assert_success
144
+ refute_line --partial " Limit the subject line to 50 characters"
145
+ }
146
+ @test " validation: ignores {<tag>} prefix when checking subject line length" {
147
+ echo " n" > $FAKE_TTY
148
+ run git commit -m " {tag} Add foo bar string to my_file"
149
+
150
+ assert_success
151
+ refute_line --partial " Limit the subject line to 50 characters"
152
+ }
153
+
132
154
# 3. Capitalize the subject line
133
155
# ------------------------------------------------------------------------------
134
156
You can’t perform that action at this time.
0 commit comments