This MR backports the bugfix releases Git v2.35.4.gl1 and v2.37.4.gl1 into Gitaly. It contains adaptations of the following MRs:
- !5047 (merged) to fix a CI issue caused by the preceding change.
- !5175 (merged) to upgrade to the respective Git versions.