From: Yuanhan Liu Date: Wed, 11 May 2016 04:09:00 +0000 (-0700) Subject: scripts: fix false positive in commit check X-Git-Tag: spdx-start~6858 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=95ce9981dd5fff19e6af14eebf1eb9c14c660add;p=dpdk.git scripts: fix false positive in commit check It reports an false positive warning when the commit subject includes the word "ctx", as it matches following regexp: -e 'rx\|tx\|RX\|TX' Fixes: edbeb7d962e9 ("scripts: check commit formatting") Signed-off-by: Yuanhan Liu --- diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh index ce6c15eac4..b7ea1beb9a 100755 --- a/scripts/check-git-log.sh +++ b/scripts/check-git-log.sh @@ -86,8 +86,8 @@ bad=$(echo "$headlines" | grep \ [ -z "$bad" ] || printf "Wrong headline uppercase:\n$bad\n" # check headline uppercase (Rx/Tx, VF, L2, MAC, Linux, ARM...) -bad=$(echo "$headlines" | grep \ - -e 'rx\|tx\|RX\|TX' \ +bad=$(echo "$headlines" | grep -E \ + -e '\<(rx|tx|RX|TX)\>' \ -e '\<[pv]f\>' \ -e '\' \ -e ':.*\' \