Ports: Properly update submodules when checking out Git repositories

This commit is contained in:
Tim Schumacher 2023-09-21 14:09:35 +02:00 committed by Jelle Raaijmakers
parent e12e833eaa
commit 40808fe1cd
Notes: sideshowbarker 2024-07-17 02:08:15 +09:00

View File

@ -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
}