mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
tools/checkpatch.sh: fix check for HEAD commit
fix checkpath.sh usage for HEAD commit:
./tools/checkpatch.sh -c -u -m -g HEAD
regression after 93911d52a8
Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
+1
-1
@@ -342,7 +342,7 @@ check_msg() {
|
||||
check_commit() {
|
||||
if [ $message != 0 ]; then
|
||||
# check each commit format separately if this is a series of commits
|
||||
if [[ $1 =~ HEAD ]]; then
|
||||
if [[ $1 =~ ..HEAD ]]; then
|
||||
for commit in $(git rev-list --no-merges $1); do
|
||||
msg=`git show -s --format=%B $commit`
|
||||
check_msg <<< "$msg"
|
||||
|
||||
Reference in New Issue
Block a user