From 99e7d3f26c42616dc79adde31c0c4978ef786e57 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 12 May 2022 22:08:04 -0700 Subject: [PATCH] jenkins: workaround lfs bug old-commit-hash: c643d7460938e0dee04e3578670f0d523cb2f4ba --- selfdrive/test/setup_device_ci.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"