File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ stages:
48
48
# On downstream pipeline checkout the necessary branch
49
49
- if [[ "$CI_PIPELINE_SOURCE" == 'pipeline' ]]; then
50
50
if git -C "$CI_PROJECT_DIR" show-ref --quiet -- "$ACI_SOURCE_BRANCH"; then
51
- git -C "$CI_PROJECT_DIR" checkout -- "$ACI_SOURCE_BRANCH";
51
+ git -C "$CI_PROJECT_DIR" checkout "$ACI_SOURCE_BRANCH";
52
52
elif git -C "$CI_PROJECT_DIR" ls-remote --exit-code -- origin "$ACI_SOURCE_BRANCH"; then
53
53
git -C "$CI_PROJECT_DIR" config remote.origin.fetch "+refs/heads/$ACI_SOURCE_BRANCH:refs/remotes/origin/$ACI_SOURCE_BRANCH";
54
54
git -C "$CI_PROJECT_DIR" remote update;
55
- git -C "$CI_PROJECT_DIR" checkout -- "$ACI_SOURCE_BRANCH";
55
+ git -C "$CI_PROJECT_DIR" checkout "$ACI_SOURCE_BRANCH";
56
56
elif git -C "$CI_PROJECT_DIR" show-ref --quiet -- "$ACI_TARGET_BRANCH"; then
57
- git -C "$CI_PROJECT_DIR" checkout -- "$ACI_TARGET_BRANCH";
57
+ git -C "$CI_PROJECT_DIR" checkout "$ACI_TARGET_BRANCH";
58
58
elif git -C "$CI_PROJECT_DIR" ls-remote --exit-code -- origin "$ACI_TARGET_BRANCH"; then
59
59
git -C "$CI_PROJECT_DIR" config remote.origin.fetch "+refs/heads/$ACI_TARGET_BRANCH:refs/remotes/origin/$ACI_TARGET_BRANCH";
60
60
git -C "$CI_PROJECT_DIR" remote update;
61
- git -C "$CI_PROJECT_DIR" checkout -- "$ACI_TARGET_BRANCH";
61
+ git -C "$CI_PROJECT_DIR" checkout "$ACI_TARGET_BRANCH";
62
62
fi
63
63
fi
64
64
You can’t perform that action at this time.
0 commit comments