jenkins: always clean old git repos on checkout (#34625)

* force

* test

* cleanup
This commit is contained in:
Maxime Desroches
2025-02-19 14:51:09 -08:00
committed by GitHub
parent b35d86551d
commit d3fd36b5b7
+1 -1
View File
@@ -97,7 +97,7 @@ unsafe_checkout() {( set -e
git fetch --no-tags --no-recurse-submodules -j8 --verbose --depth 1 origin $GIT_COMMIT
git checkout --force --no-recurse-submodules $GIT_COMMIT
git reset --hard $GIT_COMMIT
git clean -df
git clean -dff
git submodule sync
git submodule foreach --recursive "git reset --hard && git clean -df"
git submodule update --init --recursive