diff options
Diffstat (limited to 'include/git.sh')
-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" |