Fix checkout retry code.

We need to split the checkout code into two pieces: the one that runs on
a cwd context and the one deleting the folder used in the context.

Change-Id: I3ad8c4b9daa7fe0754aad65fd344fa00346a71f3
Bug: https://github.com/flutter/flutter/issues/59337
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/3600
Reviewed-by: Keyong Han <keyonghan@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
2 files changed
tree: 8a585833597214f5db24cbb9785af80f1f79fbb6
  1. infra/
  2. recipe_modules/
  3. recipes/
  4. .gitignore
  5. .style.yapf
  6. recipes.py