Clever: wait for Git repo to be ready
The Git repo to perform application deployments on Clever Cloud is created asynchronously.
This was uncovered by a scheduled maintenance on Git repos, but it could in theory also be a problem while launching lots of jobs in a fast succession.
The proper thing to do is to wait for the value of application.deployment.repoState
in the API to switch from CREATING
to CREATED
. A timeout of a few minutes should do.