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 {});'