THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

Revert "gitlab-ci: remove git fetch before_script"

Decided it's better to do it in one place than repeating the logic on
multiple places.

This reverts commit fb5b97d091.
tags/v20191114
Kevin Daudt 3 months ago
parent
commit
29b127feb4
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      .gitlab-ci.yml

+ 7
- 0
.gitlab-ci.yml View File

@@ -6,6 +6,13 @@ variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "0"

default:
# 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


Loading…
Cancel
Save