Skip to content
Snippets Groups Projects
Verified Commit 2d391e80 authored by Beatriz Rizental's avatar Beatriz Rizental Committed by Pier Angelo Vendrame
Browse files

fixup! Add CI for Base Browser

Fetch specific branch when prepopulating history from local repository.
parent 4700859f
No related tags found
No related merge requests found
Pipeline #243850 failed
......@@ -4,7 +4,7 @@
before_script:
- git init
- git remote add local "$LOCAL_REPO_PATH"
- git fetch --depth 500 local
- git fetch --depth 500 local ${CI_COMMIT_BRANCH:-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
- git remote add origin "$CI_REPOSITORY_URL"
- |
if [ -z "${CI_COMMIT_BRANCH:-$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" ]; then
......@@ -26,7 +26,12 @@
before_script:
- git init
- git remote add local $env:LOCAL_REPO_PATH
- git fetch --depth 500 local
- |
$branchName = $env:CI_COMMIT_BRANCH
if ([string]::IsNullOrEmpty($branchName)) {
$branchName = $env:CI_MERGE_REQUEST_TARGET_BRANCH_NAME
}
git fetch --depth 500 local $branchName
- git remote add origin $env:CI_REPOSITORY_URL
- |
$branchName = $env:CI_COMMIT_BRANCH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment