mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
ci: Fix the cleaning stale submodule script to support difference in sub-pathes
This commit is contained in:
committed by
Mahavir Jain
parent
816fe38f3a
commit
fd28549dfa
@@ -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 {});'
|
||||
|
||||
|
Reference in New Issue
Block a user