diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b4dee3a204bb977e7d31c0dd6dd9915621be5c32..6bdcf45a537aa847494f5fdf4efe8b592f40d0bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,8 @@ code-style:
   image: julia:1.6
   tags: [ docker ]
   script:
+    # install git
+    - apt-get install git
     # install JuliaFormatter
     - julia  -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
     # try and format the files