diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 122e4d29eb5341c8b77e6d52582ae75e74e262fe..002966f00fd8a72b62d8b7a18c856b586ec8e3ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,8 +79,7 @@ stages:
   - if [ -d wolf ]; then
   -   echo "directory wolf exists"
   -   cd wolf
-  -   git checkout devel
-  -   git pull
+  -   git fetch --all
   -   git checkout $WOLF_CORE_BRANCH
   -   git pull
   - else
@@ -98,8 +97,7 @@ stages:
   - if [ -d imu ]; then
   -   echo "directory imu exists"
   -   cd imu
-  -   git checkout devel
-  -   git pull
+  -   git fetch --all
   -   git checkout $WOLF_IMU_BRANCH
   -   git pull
   - else