Commit 8d01b572 authored by Ben Gamari's avatar Ben Gamari 🐢

gitlab-ci: Explicitly fetch target branch

`git fetch`, which we used previously, doesn't update the remote
tracking branches.
parent 971f4530
Pipeline #3952 failed with stages
in 265 minutes and 39 seconds
......@@ -47,8 +47,8 @@ ghc-linters:
stage: lint
image: "$DOCKER_REV"
- git fetch origin
- base="$(git merge-base origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_COMMIT_SHA)"
- base="$(git merge-base FETCH_HEAD $CI_COMMIT_SHA)"
- "echo Merge base $base"
# - validate-commit-msg .git $(git rev-list $base..$CI_COMMIT_SHA)
- validate-whitespace .git $(git rev-list $base..$CI_COMMIT_SHA)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment