Enable Git protocol v2
Problem to solve
Early versions of Git supporting protocol v2 had an issue where hidden refs were not respected #55769 (closed), creating performance and security problems. GitLab disabled support for protocol v2.
The issue has since been resolved in Git 2.21.0
- The v2 upload-pack protocol implementation failed to honor hidden-ref configuration, which has been corrected. (merge e20b4192a3 jk/proto-v2-hidden-refs-fix later to maint).
- Enable support for protocol v2 for Git versions 2.21.0 and above