include/git: only download submodules if possible
Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
0c32c1d643
commit
f855611c99
|
@ -60,7 +60,8 @@ prepare_new_tree()
|
|||
git_reset_rev "src/${project}/${tree}" "${rev}"
|
||||
(
|
||||
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"
|
||||
)
|
||||
git_am_patches "$PWD/src/$project/$tree" "$PWD/$cfgsdir/$tree/patches"
|
||||
|
|
Loading…
Reference in New Issue