From 40808fe1cd00574968e9cc566b5b49741dfc73b1 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 21 Sep 2023 14:09:35 +0200 Subject: [PATCH] Ports: Properly update submodules when checking out Git repositories --- Ports/.port_include.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 8c64edc5788..11e0c459edc 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -387,6 +387,7 @@ fetch_git() { if [ ! -e "${working_copy}/.git" ]; then run_nocd git -C "${backing_copy}" worktree add "${working_copy}" "${revision}" + run_nocd git -C "${working_copy}" submodule update --init --recursive fi old_revision="" @@ -399,6 +400,7 @@ fetch_git() { run_nocd git -C "${working_copy}" reset --hard run_nocd git -C "${working_copy}" tag --no-sign -f source "${revision}" run_nocd git -C "${working_copy}" checkout "${revision}" + run_nocd git -C "${working_copy}" submodule update --init --recursive fi }