summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-06 02:49:38 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-06 02:49:38 +0100
commitb8112af953e96e6f62f7d2e1cdce8a20f976fda2 (patch)
treee01125290071435d7f6e37f1ea93eedba54e2605
parent78f7e429ec1961da0e594a3172d95e0f5340e18c (diff)
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>
-rwxr-xr-xinclude/git.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh
index ec1ecdd3..6c5c2718 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -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