Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 2e12be1

Browse files
committed
[client] fix CI missing octi branch as valid remote
1 parent a14319d commit 2e12be1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/clone-opencti.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ clone_for_pr_build() {
4949
if [[ "${OPENCTI_PR_NUMBER}" != "" ]]
5050
then
5151
echo "[CLONE-DEPS] Found a PR in opencti with number ${OPENCTI_PR_NUMBER}, using it."
52+
# adding octi branch to fetchable remote branches
53+
# prevents error "Fatal: cannot set up tracking information; starting point '<branch name>' is not a branch"
54+
git remote set-branches --add origin ${OPENCTI_BRANCH}
5255
gh pr checkout ${OPENCTI_PR_NUMBER}
5356
else
5457
echo "[CLONE-DEPS] No PR found in opencti side, keeping opencti:${PR_TARGET_BRANCH}"

0 commit comments

Comments
 (0)