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>audit2-merge1
parent
b3b887567a
commit
98e9cf6864
|
@ -88,9 +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" = "grub" ] && [ $# -gt 2 ]; then
|
||||
prep_submodules "$_loc"
|
||||
elif [ "$project" = "coreboot" ] && [ $# -gt 2 ]; then
|
||||
if singletree "$project" || [ $# -gt 2 ]; then
|
||||
prep_submodules "$_loc"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue