Add git_retry logic for when github is tempremental

Copied from devstack's git_timed function