apache / mina-sshd

Apache MINA sshd is a comprehensive Java library for client- and server-side SSH.

Home Page:https://mina.apache.org/sshd-project/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support GIT protocol-v2

pflaska opened this issue · comments

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.