Skip to content

Commit

Permalink
fix: retry with git checkout (#2147)
Browse files Browse the repository at this point in the history
Works around rate limiting on git. We may want to up this count but it
is not a bad idea to still have retries. Turns out this hits the
network. Not that surprising in retrospect (git checkout can sync to
find branches on the remote), but I usually think of it in the fully
local DB case so didn't think of adding this before
  • Loading branch information
ludamad authored Sep 8, 2023
1 parent 1bd1a79 commit 9df0431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ checkout: &checkout
# Only download metadata when fetching.
retry git fetch --depth 1 --filter=blob:none origin $CIRCLE_SHA1
git checkout FETCH_HEAD
retry git checkout FETCH_HEAD
# Called setup_env to setup a bunch of global variables used throughout the rest of the build process.
# It takes the required CCI environment variables as inputs, and gives them normalised names for the rest of
Expand Down

0 comments on commit 9df0431

Please sign in to comment.