1
0
Fork 0
forked from nuttx/nuttx-update

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:07:24 +08:00 committed by Xiang Xiao
parent f801d049b0
commit 350131d00e

View file

@ -32,5 +32,4 @@ jobs:
cd nuttx
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 -