Retry repo init and repo sync few times before giving up