diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3c1ff06796571b7089838d8d1d6e6bb7de8c9a2b..5e187a78be7140eb36ea33d2040763a6133d29f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,8 +77,6 @@ license_header:
     #- chmod 644 ~/.ssh/known_hosts
     
   script:
-    - git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git
-    - git checkout -b ci_processing || git checkout ci_processing
     - echo "$CI_EMAIL"
     - echo "$CI_USERNAME"
     - git config --global user.email "${CI_EMAIL}"
@@ -93,7 +91,7 @@ license_header:
     - echo "$CI_COMMIT_REF_NAME"
     # push changes
     # always return true so that the build does not fail if there are no changes
-    - git push origin ci_processing:${CI_COMMIT_REF_NAME}
+    - git push origin HEAD:${CI_COMMIT_REF_NAME}
 
 build_and_test:xenial:
   stage: build_and_test