From: Anton Maklakov Date: Mon, 21 Aug 2017 03:51:15 +0000 (+0800) Subject: CI: Fix the spell for more reliable getting the sources X-Git-Tag: v3.1-dev~384^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=618e56abf9c8787151abf21921fdabf0ac9dce8b;p=esp-idf CI: Fix the spell for more reliable getting the sources --- diff --git a/tools/ci/get-full-sources.sh b/tools/ci/get-full-sources.sh index 932948c3ea..058cab534b 100755 --- a/tools/ci/get-full-sources.sh +++ b/tools/ci/get-full-sources.sh @@ -70,8 +70,8 @@ for try in `seq $RETRIES`; do echo "Fetch strategy submodules succeeded" && exit 0 - git submodule foreach "git reset --hard HEAD && git submodule deinit --force ." - git submodule deinit --force . + git submodule foreach --recursive "git reset --hard HEAD && git submodule deinit --force -- . || true" + git reset --hard HEAD && git submodule deinit --force -- . || true done # Then we use the clean way.