git_connect: set ssh shell command in GIT_SSH_COMMAND
commit39942766ab9bc738f49f93d4c8ea68ffbaadc305
authorThomas Quinot <thomas@quinot.org>
Sun, 9 Nov 2014 22:42:32 +0000 (9 23:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Nov 2014 16:55:10 +0000 (10 08:55 -0800)
treedf0269061d591a451060a9f6587763e451b25627
parent66edfe9ddc29102fa39edd37f9aecccbaca6a013
git_connect: set ssh shell command in GIT_SSH_COMMAND

It may be impractical to install a wrapper script for GIT_SSH
when additional parameters need to be passed. Provide an alternative
way of specifying a shell command to be run, including command line
arguments, by means of the GIT_SSH_COMMAND environment variable,
which behaves like GIT_SSH but is passed to the shell.

The special circuitry to modify parameters in the case of using
PuTTY's plink/tortoiseplink is activated only when using GIT_SSH;
in the case of using GIT_SSH_COMMAND, it is deliberately left up to
the user to make any required parameters adaptation before calling
the underlying ssh implementation.

Signed-off-by: Thomas Quinot <thomas@quinot.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
connect.c