From f8a9b8af6f6cc67a898a269af539a11309ffdb31 Mon Sep 17 00:00:00 2001
From: dam1n19 <dam1n19@soton.ac.uk>
Date: Mon, 3 Apr 2023 15:40:33 +0100
Subject: [PATCH] submodule init further testing

---
 .gitmodules       | 20 ++++++++------------
 flow/socrepo-init |  1 +
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index e1c54ec..b4c0397 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,28 +1,24 @@
 [submodule "accelerator-wrapper"]
 	path = accelerator-wrapper
 	url = git@git.soton.ac.uk:soclabs/accelerator-wrapper.git
-	branch = main
-[submodule "nanosoc"]
+	[submodule "nanosoc"]
 	path = nanosoc
 	url = git@git.soton.ac.uk:soclabs/nanosoc.git
-	branch = main
-[submodule "socsim"]
+	[submodule "socsim"]
 	path = socsim
 	url = git@git.soton.ac.uk:soclabs/socsim.git
-	branch = main
-[submodule "CHIPKIT"]
+	[submodule "CHIPKIT"]
 	path = CHIPKIT
 	url = git@git.soton.ac.uk:soclabs/CHIPKIT.git
-	branch = main
-[submodule "secworks-sha256"]
+	[submodule "secworks-sha256"]
 	path = secworks-sha256
 	url = git@git.soton.ac.uk:soclabs/secworks-sha256.git
 	branch = main
-[submodule "$DESIGN_ROOT/accelerator-wrapper"]
+[submodule "accelerator-wrapper"]
 	branch = main
-[submodule "$DESIGN_ROOT/CHIPKIT"]
+[submodule "CHIPKIT"]
 	branch = main
-[submodule "$DESIGN_ROOT/nanosoc"]
+[submodule "nanosoc"]
 	branch = main
-[submodule "$DESIGN_ROOT/socsim"]
+[submodule "socsim"]
 	branch = main
diff --git a/flow/socrepo-init b/flow/socrepo-init
index 18fe269..a14cde6 100755
--- a/flow/socrepo-init
+++ b/flow/socrepo-init
@@ -12,6 +12,7 @@
 #!/usr/bin/env bash
 
 # Source environment variables for all submodules
+cd $DESIGN_ROOT
 for d in $SOC_TOP_DIR/* ; do
     if [ -e "$d/.git" ]; then
         echo $d
-- 
GitLab