summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@milk.com>2013-03-21 23:06:40 +0000
committerJunio C Hamano <gitster@pobox.com>2013-03-26 07:53:13 -0700
commite39c695d871d877a621e39cef7e5bd208bb7b157 (patch)
treec4024aa929f6f8b5968bcb9fbb903d5c624c3c83
parent7c1017d2d56112b88be2b6fa6d2a57a12ee2ffb4 (diff)
downloadgit-e39c695d871d877a621e39cef7e5bd208bb7b157.tar.gz
Correct the docs about GIT_SSH.
In particular, it can get called with four arguments if you happen to be referring to a repo using the ssh:// scheme with a non-default port number. Signed-off-by: Dan Bornstein <danfuzz@milk.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index e0135150b1..98a45addf5 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -764,9 +764,12 @@ other
If this environment variable is set then 'git fetch'
and 'git push' will use this command instead
of 'ssh' when they need to connect to a remote system.
- The '$GIT_SSH' command will be given exactly two arguments:
- the 'username@host' (or just 'host') from the URL and the
- shell command to execute on that remote system.
+ The '$GIT_SSH' command will be given exactly two or
+ four arguments: the 'username@host' (or just 'host')
+ from the URL and the shell command to execute on that
+ remote system, optionally preceded by '-p' (literally) and
+ the 'port' from the URL when it specifies something other
+ than the default SSH port.
+
To pass options to the program that you want to list in GIT_SSH
you will need to wrap the program and options into a shell script,