Support GIT protocol-v2
pflaska opened this issue · comments
Pavel Flaška commented
Description
To make the git protocol-v2 work, the env. variable GIT_PROTOCOL has to be set to the 'version=2' value on the client side. The SSHD server reads the variable and sets extra parameters to use protocol v2.
Motivation
Git protocol v2 improves the v1 wire protocol in several ways and should be the preferred version.
Alternatives considered
No response
Additional context
protocol-v2 is supported by native git version >= 2.18.0 and jgit >= 5.11.
See https://git-scm.com/docs/protocol-v2/ for additional details.
Lyor Goldstein commented
Merged as 43288b58c7