From aaad48ef6b0643dc3c5d259d6051e9faab8a53ad Mon Sep 17 00:00:00 2001 From: Timothy Parys Date: Sun, 15 Feb 2026 12:36:15 -0500 Subject: [PATCH] Properly handle git submodules when GIT_FIXED_WORKDIR is set --- lib/functions/general/git.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/functions/general/git.sh b/lib/functions/general/git.sh index 4765f3a558..26259e5399 100644 --- a/lib/functions/general/git.sh +++ b/lib/functions/general/git.sh @@ -296,7 +296,12 @@ function fetch_from_repo() { display_alert "Updating submodule" "${name} - ${surl} - ${sref}" "git" git_ensure_safe_directory "$workdir/$path" - fetch_from_repo "$surl" "$workdir/$path" "$sref" + + if [[ "${GIT_FIXED_WORKDIR}" != "" ]]; then + GIT_FIXED_WORKDIR="${GIT_FIXED_WORKDIR}/${path}" fetch_from_repo "$surl" "$workdir/$path" "$sref" + else + fetch_from_repo "$surl" "$workdir/$path" "$sref" + fi done < <(git config -f .gitmodules --get-regexp 'submodule\..*\.path') fi