From 4b1b3c58a0ffc30e9028c4b38b7b18736f18dbac Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 2 Sep 2025 20:27:44 +0200 Subject: [PATCH] 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 93911d52a8db7a8ec283d2b8e386a00a0ccdde09 Signed-off-by: raiden00pl --- tools/checkpatch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 584f8f66a8..57f35c7ca9 100755 --- a/tools/checkpatch.sh +++ b/tools/checkpatch.sh @@ -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"