JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

Set GIT_SSH_VARIANT=ssh for new release of Git #19

Closed stayclassychicago closed 6 years ago

stayclassychicago commented 6 years ago

Explicitly set GIT_SSH_VARIANT environment variable, fixes SSH tool detection when SSH URL contains a port.

(related to recent PR: https://github.com/JetBrains/teamcity-docker-agent/pull/18#event-1539594850)

Per StackOverflow # 48417505:

"The internal behavior of Git (>=2.16.0) for SSH tool detection changed. ... This only affects if the SSH URL contains a port. For now, you need to set the environment variable GIT_SSH_VARIANT to ssh"

VladRassokhin commented 6 years ago

Thanks.