mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +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'
|
find . -name '.git' -not -path './.git' -printf '%P\n'
|
||||||
| sed 's|/.git||'
|
| sed 's|/.git||'
|
||||||
| xargs -I {} sh -c '
|
| xargs -I {} sh -c '
|
||||||
grep -q {} .gitmodules
|
grep -q "path = {}" .gitmodules
|
||||||
|| (echo "Removing {}, has .git directory but not in .gitmodules file"
|
|| (echo "Removing {}, has .git directory but not in .gitmodules file"
|
||||||
&& rm -rf {});'
|
&& rm -rf {});'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user