From: Damjan Marion Date: Sat, 29 Jun 2019 09:27:40 +0000 (+0200) Subject: misc: allow second ':' in commit message X-Git-Tag: v20.01-rc0~242 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F20410%2F3;p=vpp.git misc: allow second ':' in commit message Type: fix Fixes: 26ce6ca Change-Id: I3ffa1e60966ba3e20670a7b95bba53e86e9861e0 Signed-off-by: Damjan Marion --- 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 ==============================="