From: Anton Maklakov Date: Mon, 25 Mar 2019 12:21:06 +0000 (+0700) Subject: ci: Fix the cleaning stale submodule script to support difference in sub-pathes X-Git-Tag: v4.0-beta1~437^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd28549dfa0590746a7936594b60e13300694592;p=esp-idf ci: Fix the cleaning stale submodule script to support difference in sub-pathes --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da7db2a359..aa799f49b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ variables: find . -name '.git' -not -path './.git' -printf '%P\n' | sed 's|/.git||' | xargs -I {} sh -c ' - grep -q {} .gitmodules + grep -q "path = {}" .gitmodules || (echo "Removing {}, has .git directory but not in .gitmodules file" && rm -rf {});'