diff --git a/selfdrive/test/setup_device_ci.sh b/selfdrive/test/setup_device_ci.sh index 72f5fff28b..99acc050ea 100755 --- a/selfdrive/test/setup_device_ci.sh +++ b/selfdrive/test/setup_device_ci.sh @@ -55,15 +55,16 @@ cd $SOURCE_DIR rm -f .git/index.lock git reset --hard -find . -maxdepth 1 -not -path './.git' -not -name '.' -not -name '..' -exec rm -rf '{}' \; git fetch --verbose origin $GIT_COMMIT +find . -maxdepth 1 -not -path './.git' -not -name '.' -not -name '..' -exec rm -rf '{}' \; git reset --hard $GIT_COMMIT git checkout $GIT_COMMIT git clean -xdf git submodule update --init --recursive git submodule foreach --recursive "git reset --hard && git clean -xdf" -git lfs prune +git lfs pull +(ulimit -n 65535 && git lfs prune) echo "git checkout done, t=$SECONDS"