gitlab-ci: Fix linters
authorBen Gamari <ben@smart-cactus.org>
Fri, 22 Mar 2019 04:46:37 +0000 (00:46 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 22 Mar 2019 14:34:51 +0000 (10:34 -0400)
.gitlab-ci.yml

index ee0543a..86d0fde 100644 (file)
@@ -58,6 +58,7 @@ ghc-linters:
     #    - validate-commit-msg .git $(git rev-list $base..$CI_COMMIT_SHA)
     - validate-whitespace .git $(git rev-list $base..$CI_COMMIT_SHA)
     - .gitlab/linters/check-makefiles.py $base $CI_COMMIT_SHA
+    - git checkout "$CI_COMMIT_SHA"
     - .gitlab/linters/check-cpp.py $base $CI_COMMIT_SHA
   dependencies: []
   tags: