From 9c4cdc5331c1989b9a82e392255e516b16a5a47b Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Fri, 8 May 2020 11:23:50 +0800 Subject: [PATCH] CI: use 'git diff $commits' as a whole patchset to do checkpatch So avoid the duplicate print logs sometimes and rename file not opened issue. Signed-off-by: liuhaitao --- .github/workflows/check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ac3c144e6..2c0d58604 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -38,5 +38,4 @@ jobs: cd apps commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'` git log --oneline $commits - echo "../nuttx/tools/checkpatch.sh -g $commits" - ../nuttx/tools/checkpatch.sh -g $commits + git diff $commits | ../nuttx/tools/checkpatch.sh -