diff --git a/include/git.sh b/include/git.sh index ba42156..c55b365 100755 --- a/include/git.sh +++ b/include/git.sh @@ -104,7 +104,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 [ "$project" = "coreboot" ] && [ $# -gt 2 ]; then [ ! -f "$tmpgit/.gitmodules" ] || git -C "$tmpgit" submodule \ update --init || $err "git_prep $_loc: !submod" if [ "$project" = "coreboot" ] && [ -n "$xtree" ] && \