mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 09:32:27 +02:00
include/git: only download submodules if possible
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ prepare_new_tree()
|
|||||||
git_reset_rev "src/${project}/${tree}" "${rev}"
|
git_reset_rev "src/${project}/${tree}" "${rev}"
|
||||||
(
|
(
|
||||||
x_ cd "src/${project}/${tree}"
|
x_ cd "src/${project}/${tree}"
|
||||||
git submodule update --init --checkout || \
|
[ ! -f ".gitmodules" ] || \
|
||||||
|
git submodule update --init --checkout || \
|
||||||
err "prepare_new_tree ${project}/${tree}: can't update git modules"
|
err "prepare_new_tree ${project}/${tree}: can't update git modules"
|
||||||
)
|
)
|
||||||
git_am_patches "$PWD/src/$project/$tree" "$PWD/$cfgsdir/$tree/patches"
|
git_am_patches "$PWD/src/$project/$tree" "$PWD/$cfgsdir/$tree/patches"
|
||||||
|
|||||||
Reference in New Issue
Block a user