Read object hash and reference backend directly from configuration
Gitaly is currently using Git commands to determine the reference backend and object hash of the repository. This is incredibly inefficient for such simple operations. This MR reads the values directly from the repository's configuration file to optimize.
While we could, we don't fully parse the configuration file or validate its structure. Gitaly is responsible for writing the configuration files so we can ensure we write well formed configuration files.
The object hash and reference backend detection speeds up roughly by 41x and this leads roughly to a 20% improvement in transaction throughput.
Closes #6318 (closed)
Edited by Sami Hiltunen