I was messing around with my gitlab server and found that my gitlab server isn’t responding to git protocol 2 header requests. I can’t find any setting that would actually disable or enable git protocol 2 feature. Here is what I’m currently seeing:
GIT_TRACE_CURL=1 git -c protocol.version=2 ls-remote https://XXX.XXX.XXX.XXX/IaC/tf-azure-cms.git 2>&1 | grep Git-Protocol
15:07:26.793989 http.c:688 => Send header: Git-Protocol: version=2
15:07:26.816366 http.c:688 => Send header: Git-Protocol: version=2
Username for ‘https://xxx.xxxxxxxxxxx.com:443’: user
Password for ‘https://user@xxx.xxxxxxxxxx.com:443’:
15:07:38.687592 http.c:688 => Send header: Git-Protocol: version=2
15:07:38.736313 http.c:688 => Send header: Git-Protocol: version=2
15:07:38.787270 http.c:688 => Send header: Git-Protocol: version=2
As you can see the server never responds with git-protocol v2. The server is running git 2.23.4
GitLab 13.10.2 (7efd19e3716)
GitLab Shell 13.17.0
GitLab Workhorse v13.10.2
GitLab API v4
Ruby 2.7.2p137
Rails 6.0.3.4
PostgreSQL 12.5
Redis 6.0.10
Gitlay servers
default unix:/var/opt/gitlab/gitaly/gitaly.socket 13.10.2 2.29.0