git.sh: don't include --checkout in submodules

this is an oversight in the last few commits.

canoeboot must not use --checkout, because doing so
would download blob repositories from coreboot.org

by only including "--init" in the submodule command,
coreboot's build system skips almost all blobs.

(and then canoeboot deletes any remaining stragglers)

Signed-off-by: Leah Rowe <info@minifree.org>
audit2-merge1
Leah Rowe 2024-05-22 18:15:03 +01:00
parent 5e0129eb0f
commit 24934e6569
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ git_prep()
prep_submodules()
{
[ -f "$tmpgit/.gitmodules" ] || return 0
git -C "$tmpgit" submodule update --init --checkout || $err "$1: !mod"
git -C "$tmpgit" submodule update --init || $err "$1: !mod"
mdir="${PWD}/config/submodule/$project"
[ -n "$tree" ] && mdir="$mdir/$tree"