From d7a5313acac4a3cbac441da67f8315b525cee853 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Sat, 9 May 2020 13:13:12 +0800 Subject: [PATCH] Revert "CI: use 'git diff $commits' as a whole patchset to do checkpatch" This reverts commit 9c4cdc5331c1989b9a82e392255e516b16a5a47b. If one PR is on a former master code base, using 'git diff $commits' would result in abnormal checkpatch report sometimes. So revert it anyway. --- .github/workflows/check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2c0d58604..ac3c144e6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -38,4 +38,5 @@ jobs: cd apps commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'` git log --oneline $commits - git diff $commits | ../nuttx/tools/checkpatch.sh - + echo "../nuttx/tools/checkpatch.sh -g $commits" + ../nuttx/tools/checkpatch.sh -g $commits