Skip to content

Commit 176579d

Browse files
committed
Merge pull request #4137 from Joshua-Anderson/commit-hook-cleanup
feat(commit-msg): don't prevent a commit, only warn
2 parents f886695 + 379bc1f commit 176579d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

contrib/util/commit-msg

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if ! [[ $SUBJECT =~ $subject_regex ]]; then
3939
echo "chore"
4040
echo ""
4141
echo "Read more at http://docs.deis.io/en/latest/contributing/standards/$NORMAL"
42-
exit 1
42+
exit 0
4343
fi
4444

4545
if ! [[ $SUBJECT =~ $capital_regex ]]; then
@@ -48,20 +48,21 @@ if ! [[ $SUBJECT =~ $capital_regex ]]; then
4848
echo "$SUBJECT"
4949
echo ""
5050
echo "Read more at http://docs.deis.io/en/latest/contributing/standards/$NORMAL"
51-
exit 1
51+
exit 0
5252
fi
5353

5454
if [[ ${#SUBJECT} -gt 50 ]]; then
5555
echo "${YELLOW}WARNING - Subject shouldn't be longer than 50 characters."
5656
echo ""
5757
echo "Read more at http://docs.deis.io/en/latest/contributing/standards/$NORMAL"
58+
exit 0
5859
fi
5960

6061
if [[ ${#MESSAGE[2]} -gt 0 ]]; then
6162
echo "${RED}ERROR - Second line must be blank"
6263
echo ""
6364
echo "Read more at http://docs.deis.io/en/latest/contributing/standards/$NORMAL"
64-
exit 1
65+
exit 0
6566
fi
6667

6768
cnt=${#MESSAGE[@]}
@@ -71,7 +72,7 @@ do
7172
echo "${RED}ERROR on line $i - can't be longer than 72 characters."
7273
echo ""
7374
echo "Read more at http://docs.deis.io/en/latest/contributing/standards/$NORMAL"
74-
exit 1
75+
exit 0
7576
fi
7677
done
7778

0 commit comments

Comments
 (0)