]> source.dussan.org Git - gitea.git/commit
Enable Wire 2 for Internal SSH Server (#20616)
authorGusted <williamzijl7@hotmail.com>
Tue, 2 Aug 2022 07:56:38 +0000 (09:56 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Aug 2022 07:56:38 +0000 (15:56 +0800)
commit8740631b79390299e0dc82469bcb85553a4a09f7
tree24bdd73e081a3457eae7bc34d3f23f3b9e322f79
parent036dd8a788468e7730b29982747cc3cf8829ce86
Enable Wire 2 for Internal SSH Server (#20616)

- Git only decides to use the Wire 2 protocol when `git
{receive,upload}-pack` receive the `GIT_PROTOCOL` environment with as
value `version=2`. Currently the internal SSH Server wasn't passing this
environment through. The `gitea serv` code already passed all received
environments to the git command, so no code changes there.
modules/ssh/ssh.go