]> granicus.if.org Git - esp-idf/commitdiff
ci: Fix the cleaning stale submodule script to support difference in sub-pathes
authorAnton Maklakov <anton@espressif.com>
Mon, 25 Mar 2019 12:21:06 +0000 (19:21 +0700)
committerMahavir Jain <mahavir@espressif.com>
Mon, 1 Apr 2019 10:17:01 +0000 (15:47 +0530)
.gitlab-ci.yml

index da7db2a35944a1aa16985d312b5d99da2a556bd7..aa799f49b6c7f33e744a6af8a196be4fc20bfde1 100644 (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 {});'