ci: Clean submodules after fetching sources

Assuming no submodule dirs contain artifacts that we can't clean
This commit is contained in:
Angus Gratton 2020-01-14 16:28:18 +10:00 committed by Angus Gratton
parent 1d7fdf42d5
commit 37fc756875

View file

@ -41,6 +41,8 @@ update_submodules() {
else else
${SCRIPT_DIR}/mirror-submodule-update.sh || return $? ${SCRIPT_DIR}/mirror-submodule-update.sh || return $?
fi fi
# possibility that there are some untracked files left in submodule working directories
git submodule foreach --recursive git clean -ffdx
} }
del_files() { del_files() {