ci: Fix the cleaning stale submodule script to support difference in sub-pathes

This commit is contained in:
Anton Maklakov
2019-03-25 19:21:06 +07:00
committed by Mahavir Jain
parent 816fe38f3a
commit fd28549dfa

View File

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