diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5d3d8b32c6b0358eec28524c94e7d95e20263a9..860a1f76e394a643a113ede1b95ac5fca8be2750 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,8 @@
       - ssh-keyscan -p 2202 gitlab.iri.upc.edu  >> ~/.ssh/known_hosts
       - chmod 644 ~/.ssh/known_hosts
       - ssh -p 2202 git@gitlab.iri.upc.edu #test
+      - apt update
+      - apt -y install git
       - git submodule sync --recursive
       - git submodule update --init --recursive