jenkins: workaround lfs bug

old-commit-hash: c643d74609
taco
Adeeb Shihadeh 3 years ago
parent de83c06fcb
commit 99e7d3f26c
  1. 5
      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"

Loading…
Cancel
Save