X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fscripts%2Fcheck_commit_msg.sh;h=0baa2b55f8e10fa9bf3d60d5380db38a1e47c0ca;hb=e3282bae27064b3d9788e235db50441fd2fe1a70;hp=b9bfc303eb214b0838592a89e210219136d928ef;hpb=6e5baf29e2e48dc62a439d148f243dbb735de786;p=vpp.git diff --git a/extras/scripts/check_commit_msg.sh b/extras/scripts/check_commit_msg.sh index b9bfc303eb2..0baa2b55f8e 100755 --- a/extras/scripts/check_commit_msg.sh +++ b/extras/scripts/check_commit_msg.sh @@ -1,7 +1,7 @@ #/bin/env bash KNOWN_FEATURES=$(cat MAINTAINERS | sed -ne 's/^I:[[:space:]]*//p') -FEATURES=$(git show -s --format=%s --no-color | sed -e 's/\(.*\):.*/\1/') +FEATURES=$(git show -s --format=%s --no-color | sed -e 's/\([a-z0-9 -]*\):.*/\1/') KNOWN_TYPES="feature fix refactor style docs test make" TYPE=$(git show -s --format=%b --no-color | sed -ne 's/^Type:[[:space:]]*//p') ERR="=============================== ERROR ==============================="