From 7427603da67265aa53771972eb500901fad3bd4b Mon Sep 17 00:00:00 2001
From: dwn1c21 <d.newbrook@soton.ac.uk>
Date: Wed, 5 Jul 2023 09:05:06 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ad18e34..95ef7ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,8 +42,8 @@ build-job-Z2:       # This job runs in the build stage, which runs first.
   stage: build
   script:
     # move to fpga_imp directory and run the fpga build script for pynq z2
-    - git submodule init
-    - git pull --recurse-submodules
+    - git submodule foreach --recursive git submodule init
+    - git fetch --recurse-submodules
     - source set_env.sh
     - cd ./nanosoc_tech/fpga/
     - make build_fpga FPGA=z2
@@ -66,8 +66,8 @@ build-job-ZCU104:       # This job runs in the build stage, which runs first.
   stage: build
   script:
    # move to fpga_imp directory and run the fpga build script for pynq z2 
-    - git submodule init
-    - git pull --recurse-submodules
+    - git submodule foreach --recursive git submodule init
+    - git fetch --recurse-submodules
     - source set_env.sh
     - cd ./nanosoc_tech/fpga
     - make build_fpga FPGA=zcu104
-- 
GitLab