Closed Vampire closed 6 years ago
GitHub and GitLab have the same problem, also for repo creation. I like the solution, but not as an unconditional wait. Maybe have a git lab fork --wait ?
Actually, that comment is pointless. We're going to have to wait, but I'd like to fix that in a slightly different way.
Alternative solution implemented in 242d9f3, thanks!
According to GitLab support forking on GitLab is a two-step process. Forking via API copies the metadata, but the actual code fork is done asynchronously. This second step can need some time, depending on size of the repo and load of the systems. It is also a requirement to be able to fetch or clone. Unfortunately there is no way to watch the fork status according to GitLab support, so try for 2 minutes once a second to clone or fetch the new fork. Until then the code fork should usually be finished.