From b0c686ad0579e4f299a9c09e2221b983175cfb43 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Mon, 24 Jan 2022 09:27:33 +0100
Subject: [PATCH] [skip ci] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 04fc62f..b1acfc8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,10 +38,10 @@ stages:
   -   git checkout devel
   -   git pull
   -   git checkout $WOLF_CORE_BRANCH
+  -   git pull
   - else
-  -   git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git
+  -   git clone -b $WOLF_CORE_BRANCH ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git
   -   cd wolf
-  -   git checkout $WOLF_CORE_BRANCH
   - fi
   - mkdir -pv build
   - cd build
@@ -77,10 +77,10 @@ stages:
   -   git checkout devel
   -   git pull
   -   git checkout $WOLF_GNSS_BRANCH
+  -   git pull
   - else
-  -   git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/gnss.git
+  -   git clone -b $WOLF_GNSS_BRANCH ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/gnss.git
   -   cd gnss
-  -   git checkout $WOLF_GNSS_BRANCH
   - fi
   - mkdir -pv build
   - cd build
@@ -97,10 +97,10 @@ stages:
   -   git checkout devel
   -   git pull
   -   git checkout $WOLF_IMU_BRANCH
+  -   git pull
   - else
-  -   git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git
+  -   git clone -b $WOLF_IMU_BRANCH ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git
   -   cd imu
-  -   git checkout $WOLF_IMU_BRANCH
   - fi
   - mkdir -pv build
   - cd build
-- 
GitLab