diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-20 07:47:10 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-20 07:47:10 +0100 |
commit | f855611c99bb8a4291de637c56a9e47a581a2f9a (patch) | |
tree | 54754cec3ea1f94427762986581d17663d7cbb40 /include | |
parent | 0c32c1d6438c58dce990ca76811d58b852682b2a (diff) |
include/git: only download submodules if possible
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/git.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh index ce7a2625..5c3ee81e 100755 --- a/include/git.sh +++ b/include/git.sh @@ -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" |