Skip to content

Geo: Replicate repository creation

Description

We should replicate the repository creation event in Geo (#76 (closed)) (newly created projects with empty repository).

As an end-user if you create a new project on the primary node and did not commit any code to it, you will get a empty project screen. If you visit the secondary node, you will get an error telling you that you have no repository on the disk.

While this has minimal impact on the normal use, and is "fixed" after the first commit starts the synchronization which also creates the local repository on the secondary node, from the user's perspective it looks like something is not working correctly.

Proposal

When we receive a project_create event, we should execute a job that creates a local empty repository.

Links / references

https://docs.gitlab.com/ce/system_hooks/system_hooks.html