git.sh: use singletree() to decide submodules

now it no longer hardcodes a check for whether the
project name is coreboot. this maintains the same
behaviour but will now work for other multi-tree
projects; in practise, the other multi-tree projects
did not use .gitmodules files anyway, but some of
them used config/submodules/ in our build system.

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-06 02:49:38 +01:00
parent 78f7e429ec
commit b8112af953
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ git_prep()
git -C "$tmpgit" reset --hard $rev || $err "git -C $_loc: !reset $rev"
git_am_patches "$tmpgit" "$_patchdir" || $err "!am $_loc $_patchdir"
if [ "$project" != "coreboot" ] || [ $# -gt 2 ]; then
if singletree "$project" || [ $# -gt 2 ]; then
prep_submodules "$_loc"
fi