Commit fb5b97d0 authored by Kevin Daudt's avatar Kevin Daudt

gitlab-ci: remove git fetch before_script

To know what aports are changed in a merge request, we need to know
where the target branch is, so that we can use git diff against that
branch.

To test this, this was added in the CI jobs description in a global
`before_script`, but this is now being handled by respective scripts
themselves, so the before_script is now redundant.
parent 0e379524
......@@ -6,12 +6,6 @@ variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "0"
# Make sure master points to the correct upstream commit
before_script:
- >
git fetch $CI_MERGE_REQUEST_PROJECT_URL
+refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
lint:
stage: lint
image: alpinelinux/apkbuild-lint-tools:latest
......
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