Fetch with unshallow flag

Otherwise fetch may not fetch all commits in the branch.
simplify_debugging
elsid 2 years ago
parent 1387671bbf
commit 81ed0ccd52
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -53,7 +53,7 @@ git fetch target "${TARGET_BRANCH:?}"
if [[ "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" ]]; then
git remote add source "${CI_MERGE_REQUEST_SOURCE_PROJECT_URL}"
git fetch source "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
git fetch --unshallow source "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
elif [[ "${CI_COMMIT_BRANCH}" ]]; then
git fetch origin "${CI_COMMIT_BRANCH:?}"
else

Loading…
Cancel
Save