]> granicus.if.org Git - esp-idf/commitdiff
ci check_commit_msg: Use CI_COMMIT_SHA to avoid ambiguity
authorAnton Maklakov <anton@espressif.com>
Fri, 16 Jun 2017 04:36:34 +0000 (12:36 +0800)
committerAnton Maklakov <anton@espressif.com>
Fri, 30 Jun 2017 03:57:07 +0000 (11:57 +0800)
.gitlab-ci.yml

index fc2c593817eb604a665a3681cd0271a0c9c56930..a9d0d8d5870154adf1e2cfa0e7dc7af0624cf2e5 100644 (file)
@@ -357,9 +357,10 @@ check_commit_msg:
   before_script:
     - echo "skip update submodule"
   script:
-    - git checkout ${CI_COMMIT_REF_NAME}
+    - git status
+    - git log -n10 --oneline
     # commit start with "WIP: " need to be squashed before merge
-    - 'git log --pretty=%s master..${CI_COMMIT_REF_NAME} | grep "^WIP: " || exit 0 && exit 1'
+    - 'git log --pretty=%s master.. -- | grep "^WIP: " && exit 1 || exit 0'
 
 check_submodule_sync:
   stage: deploy