Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
34ccf72
)
build: Fix Subject-line feature list extraction
68/28268/2
author
Jon Loeliger
<jdl@netgate.com>
Tue, 26 Nov 2019 14:11:11 +0000
(08:11 -0600)
committer
Dave Wallace
<dwallacelf@gmail.com>
Wed, 12 Aug 2020 14:37:52 +0000
(14:37 +0000)
Bang on sed until a better incantation appears.
Change-Id: Ib8ad0996b6325db0fe983c86dd7dc553c9d388c4
Type: fix
Fixes:
26ce6ca1fe6f524a9049444fe8d55042fd7530a6
Signed-off-by: Jon Loeliger <jdl@netgate.com>
(cherry picked from commit
171577e129363aec30640a50f91cf0ff46d61bb9
)
extras/scripts/check_commit_msg.sh
patch
|
blob
|
history
diff --git
a/extras/scripts/check_commit_msg.sh
b/extras/scripts/check_commit_msg.sh
index
0baa2b5
..
acad403
100755
(executable)
--- a/
extras/scripts/check_commit_msg.sh
+++ b/
extras/scripts/check_commit_msg.sh
@@
-1,7
+1,8
@@
#/bin/env bash
KNOWN_FEATURES=$(cat MAINTAINERS | sed -ne 's/^I:[[:space:]]*//p')
-FEATURES=$(git show -s --format=%s --no-color | sed -e 's/\([a-z0-9 -]*\):.*/\1/')
+FEATURES=$(git show -s --format=%s --no-color \
+ | sed -ne 's/^\([a-z0-9 -]*\):.*$/\1/p')
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 ==============================="