Issue #3401971 by fjgarlin: Test-only job shouldn't require constant rebases to detect which files were changed

(cherry picked from commit b90362e815)
merge-requests/5508/head
catch 2023-11-17 15:36:09 +00:00
parent 19acc1d599
commit 0f92317d08
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ variables:
- <<: *with-chrome
script:
- export TARGET_BRANCH=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}${CI_COMMIT_BRANCH}
- git fetch -vn --depth=3 "$CI_MERGE_REQUEST_PROJECT_URL" "+refs/heads/$TARGET_BRANCH:refs/heads/$TARGET_BRANCH"
- git fetch -vn --depth=50 "$CI_MERGE_REQUEST_PROJECT_URL" "+refs/heads/$TARGET_BRANCH:refs/heads/$TARGET_BRANCH"
- |
echo " Changes from ${TARGET_BRANCH}"
git diff ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --name-only