Restore repositories into gitaly
Background: https://gitlab.com/charts/gitlab/issues/28#note_65321813
The purpose of this issue is to track my research on gitaly project to work on closing gitlab-org/gitaly#749 (closed)
This is needed for https://gitlab.com/charts/gitlab/issues/28
Edited by Ahmad Hassan