Convert CreateFork to transparently handle object pool creation
With CreateFork we have an RPC that could in theory transparently handle all logic around object pools for the caller. Upon forking a repository, it could:
- Create the object pool.
- Link the forked repository to that object pool.
- Create the fork.
- Link the fork to the object pool.
This would make sure that we're in full control of how object pools are created in Gitaly and reduces the overhead in Rails. Furthermore, it ensures that we can more efficiently deduplicate objects in the repository.
Edited by Patrick Steinhardt