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

Commit 7522a55

Browse files
committed
[client] fix CI missing octi branch as valid remote
1 parent e302b16 commit 7522a55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/clone-opencti.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +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-
echo "[DEBUG] -------- "
53-
git config --local --get-all remote.origin.fetch
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"
5454
git remote set-branches --add origin ${OPENCTI_BRANCH}
55-
echo "[DEBUG] -------- "
5655
gh pr checkout ${OPENCTI_PR_NUMBER}
5756
else
5857
echo "[CLONE-DEPS] No PR found in opencti side, keeping opencti:${PR_TARGET_BRANCH}"

0 commit comments

Comments
 (0)