* [PATCH] Correct the docs about GIT_SSH.
@ 2013-03-21 23:06 Dan Bornstein
2013-03-26 14:52 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Dan Bornstein @ 2013-03-21 23:06 UTC (permalink / raw)
To: git; +Cc: Dan Bornstein
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>
---
Documentation/git.txt | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 7efaa59..4307d62 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -774,9 +774,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,
--
1.7.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Correct the docs about GIT_SSH.
2013-03-21 23:06 [PATCH] Correct the docs about GIT_SSH Dan Bornstein
@ 2013-03-26 14:52 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2013-03-26 14:52 UTC (permalink / raw)
To: Dan Bornstein; +Cc: git
Dan Bornstein <danfuzz@milk.com> writes:
> 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>
> ---
> Documentation/git.txt | 9 ++++++---
> 1 files changed, 6 insertions(+), 3 deletions(-)
Looks good. Thanks.
> diff --git a/Documentation/git.txt b/Documentation/git.txt
> index 7efaa59..4307d62 100644
> --- a/Documentation/git.txt
> +++ b/Documentation/git.txt
> @@ -774,9 +774,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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-26 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-21 23:06 [PATCH] Correct the docs about GIT_SSH Dan Bornstein
2013-03-26 14:52 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).