From 89ae2373c695c45c6d18351fd60ee85dfa0d6aa2 Mon Sep 17 00:00:00 2001 From: norvell Date: Thu, 30 May 2024 12:04:03 +0000 Subject: [PATCH] Add git fetch, git restore to update-scripts-repo --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ceb6cad9..654e4b141 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -125,6 +125,8 @@ stages: - cd $SCRIPTS_DIR - 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 fetch + - git restore . # Just as a precaution - git checkout $BASOP_CI_BRANCH_PC_REPO - git pull - cd - -- GitLab