You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/23 23:04:41 UTC

[incubator-nuttx] 01/05: CI: refine checkpatch commits in check.yml

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch releases/9.0
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 0b8fe43a691aeebed2b6c7def90bb59b3e35f1d8
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Thu Apr 16 17:33:12 2020 +0800

    CI: refine checkpatch commits in check.yml
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 .github/workflows/check.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index e208e26..242496a 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -30,8 +30,7 @@ jobs:
     - name: Check Pull Request
       run: |
         cd nuttx
-        ranges=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
-        git log --oneline $ranges
-        commits=`git log --reverse --format=format:%H $ranges`
+        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