mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
git.sh: skip submodules if .gitmodules missing
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-2
@@ -115,8 +115,8 @@ git_prep()
|
||||
|
||||
prep_submodules()
|
||||
{
|
||||
[ ! -f "$tmpgit/.gitmodules" ] || git -C "$tmpgit" submodule \
|
||||
update --init --checkout || $err "git_prep $1: !submod"
|
||||
[ -f "$tmpgit/.gitmodules" ] || return 0
|
||||
git -C "$tmpgit" submodule update --init --checkout || $err "$1: !mod"
|
||||
|
||||
mdir="${PWD}/config/submodule/$project"
|
||||
[ -n "$tree" ] && mdir="$mdir/$tree"
|
||||
|
||||
Reference in New Issue
Block a user