Commit bd11b3ef authored by norvell's avatar norvell
Browse files

Merge branch 'ci/add-git-prune-when-fetching-scripts' into 'main'

[CI] Potential fix for runner error caused by deleted branches

See merge request !344
parents c8984ee7 4ecc40e5
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -123,10 +123,8 @@ stages:

.update-scripts-repo: &update-scripts-repo
  - cd $SCRIPTS_DIR
  - git remote set-branches --add origin $BASOP_CI_BRANCH_PC_REPO
  - git remote prune origin
  - git branch
  - git fetch
  - sed -i '/fetch/d' .git/config # Remove all fetch lines to clean out dead links
  - git remote set-branches --add origin $BASOP_CI_BRANCH_PC_REPO # Add currently used branch
  - git checkout $BASOP_CI_BRANCH_PC_REPO
  - git pull
  - cd -