[CI, sh, Windows] Do shallow submodule init. History is not needed.

This commit is contained in:
Maxim Kulyk 2020-05-23 03:08:10 +03:00 committed by Ani
parent 6efc735728
commit ab6942d974

View File

@ -35,7 +35,7 @@ DEP_URLS=" \
# Pull all the submodules except llvm, since it is built separately and we just download that build
# Note: Tried to use git submodule status, but it takes over 20 seconds
# shellcheck disable=SC2046
git submodule -q update --init $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
# Git bash doesn't have rev, so here it is
rev()