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

* force

* test

* cleanup
pull/34621/head
Maxime Desroches 2 months ago committed by GitHub
parent b35d86551d
commit d3fd36b5b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/test/setup_device_ci.sh

@ -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

Loading…
Cancel
Save