diff --git a/.git-hooks/commit-msg.sh b/.git-hooks/commit-msg.sh index 051cd61834..f465ed4d47 100644 --- a/.git-hooks/commit-msg.sh +++ b/.git-hooks/commit-msg.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -commit_pattern="### What's done:" +commit_pattern="(Merge (remote-tracking )?branch|### What's done:)" error_msg="Your commit message doesn't match the pattern $commit_pattern. Please fix it." if [[ ! $( cat "$1" ) =~ $commit_pattern ]]