From fd28549dfa0590746a7936594b60e13300694592 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Mon, 25 Mar 2019 19:21:06 +0700 Subject: [PATCH] ci: Fix the cleaning stale submodule script to support difference in sub-pathes --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {});'