diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a4a5e1d16af24087b6c57a8e7698ec7d12b1368c..f9c67979c4be0ab015a4ebd28716ffda57098d3f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,8 +45,8 @@ fast-build:
   stage: precheck
   image: $CI_REGISTRY/gpasero/otb/otb-install-ubuntu-native
   before_script:
-    - python3 CI/check_twin_pipelines.py
     - git checkout $CI_COMMIT_REF_NAME
+    - python3 CI/check_twin_pipelines.py
   script:
     - ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-fast
     - ccache -s