From 4fccb24b9c5ce43cadf75ad5e3f96db6542d6e5f Mon Sep 17 00:00:00 2001
From: dam1n19 <dam1n19@soton.ac.uk>
Date: Wed, 5 Jul 2023 18:32:44 +0100
Subject: [PATCH] Updated checkout command

---
 bin/subrepo_checkout.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/subrepo_checkout.py b/bin/subrepo_checkout.py
index a2cb19a..133cc82 100755
--- a/bin/subrepo_checkout.py
+++ b/bin/subrepo_checkout.py
@@ -41,7 +41,7 @@ def find_branchfile(directory, branchfile):
     
 def repo_checkout(directory, branch, branchfile):
     print(f"Checking out {directory} to branch {branch}")
-    os.system(f"cd {directory}; git checkout {branch}")
+    os.system(f"cd {directory}; git checkout --recurse-submodules {branch}")
     find_branchfile(directory, branchfile)
     
 if __name__ == "__main__":
-- 
GitLab