diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0bb7149dbdc3daa8b3c8a3304532e7c978acbf37..f52346e0eef8e4aca850882d33ea25d11f4041e7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,7 @@ cache:
     - .cache/pip
 
 before_script:
+  - command -v git || apt-get -y install git
   - command -v python3 || apt-get -y install python3
   - command -v pip3 || apt-get -y install python3-pip
   - python3 -V  # Print out python version for debugging