From 8676a4da9bd69ccf2cfc507f2c3b3f8ee20ed433 Mon Sep 17 00:00:00 2001
From: Lorenzo Pagliai <lorenzo.pagliai@seco.com>
Date: Wed, 14 Dec 2022 17:03:41 +0100
Subject: [PATCH] Bug fix on repo init branch reference for build

* When a tag occurs the '-b' command in repo init would fail
---
 manifest-pipeline-yocto.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml
index 99386c0..ba0c8bb 100644
--- a/manifest-pipeline-yocto.yml
+++ b/manifest-pipeline-yocto.yml
@@ -182,14 +182,13 @@ retrigger:
       - chown 1002:1002 /home/secous/.ssh/config
       - chown 1002:1002 /home/secous/.ssh/id_rsa
       - chmod 600 /home/secous/.ssh/id_rsa
-      - echo "This is the manifest branch for the build ${CI_COMMIT_REF_NAME}"
       - ls -l /home/secous/.ssh/
       - eval $(ssh-agent -s)
       - ssh-add /home/secous/.ssh/id_rsa
       - export EULA=1
       - |
         su secous -c "
-        repo init -u ${CI_REPOSITORY_URL} -b ${CI_COMMIT_REF_NAME}; 
+        repo init -u ${CI_REPOSITORY_URL} -b kirkstone/develop; 
         repo sync -j$(nproc) --fetch-submodules;
         . ./seco-setup.sh -d ${DEFCONFIG_FILE};
         . ./seco-setup.sh -c;
-- 
GitLab