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 <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-05-08 11:23:50 +08:00 committed by Abdelatif Guettouche
parent b2d8c501f6
commit 9c4cdc5331

View File

@ -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 -