Properly handle git submodules when GIT_FIXED_WORKDIR is set
This commit is contained in:
parent
185f7978bf
commit
aaad48ef6b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user