The reason for setupGitEnv is to add a -i keyfile argument to GIT_SSH_COMMAND.
If there is no key file, we do not need to modify the environment at all.
The problem with #300 was that it always reset GIT_SSH_COMMAND even when there was no keyfile to add, and lost the original command string.
The reason for
setupGitEnv
is to add a-i keyfile
argument toGIT_SSH_COMMAND
. If there is no key file, we do not need to modify the environment at all.The problem with #300 was that it always reset
GIT_SSH_COMMAND
even when there was nokeyfile
to add, and lost the original command string.