aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-06-29 11:27:40 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-07-05 18:00:04 +0000
commit94bef09213c1e47d37f8342b746de767d9669739 (patch)
tree739f28b206acecdc57b79d52699adeee554ca28d
parent81cfa9cf388a742bad0d71ba1c92debb04c6cdba (diff)
misc: allow second ':' in commit message
Type: fix Fixes: 26ce6ca Change-Id: I3ffa1e60966ba3e20670a7b95bba53e86e9861e0 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rwxr-xr-xextras/scripts/check_commit_msg.sh2
1 files changed, 1 insertions, 1 deletions
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 ==============================="