Skip to content

Retry up to 3 times when running git clone

Ash McKenzie requested to merge ashmckenzie/support-git-clone-retry into main

What does this Merge Request do and why?

This MR attempts to make the gdk install process more robust by retrying git clone commands if they fail. Unfortunately git does not support/offer a --retry option currently so we need to implement our own solution.

Merge Request checklist

  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.
  • Add the ~highlight label if this MR should be included in the CHANGELOG.md.
Edited by Ash McKenzie

Merge request reports