git: Make LocalRepository independent of the global Gitaly configuration
This MR disentangles the LocalRepository abstraction from the global Gitaly configuration, on which it currently depends on indirectly via the CommandFactory
. The first half of this MR consists of refactoring of the CommandFactory
which merge some code paths, and which ultimately make it easier to be called from the LocalRepository
directly. The second part then injects configurations into both CommandFactory
and LocalRepository
and makes use of them.