gitlab-ci: Compute merge base against remote tracking branch
authorBen Gamari <ben@smart-cactus.org>
Fri, 22 Mar 2019 22:49:34 +0000 (18:49 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 22 Mar 2019 22:49:34 +0000 (18:49 -0400)
commit971f4530004868b9a043252d6f25081388d99e0d
treeb265397b24bc7904aa0947dd9415d9b228547937
parent44b08ede3f4afb05a55c1acd5b644a38e0fb14f5
gitlab-ci: Compute merge base against remote tracking branch

Previously we would use the local branch with the name
`$CI_MERGE_REQUEST_TARGET_BRANCH_NAME` to compute the merge base when
linting. However, this branch isn't necessarily up-to-date. We should
rather use `origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME`.
.gitlab-ci.yml