{"thread":{"id":"33252","subject":"[PATCH] Correct the docs about GIT_SSH.","startedAt":"2013-03-21T23:06:40Z","lastAt":"2013-03-26T14:52:19Z","messageCount":2,"participants":["Dan Bornstein","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"211911","messageId":"1363907200-12850-1-git-send-email-danfuzz@milk.com","threadId":"33252","inReplyTo":null,"subject":"[PATCH] Correct the docs about GIT_SSH.","fromName":"Dan Bornstein","fromEmail":"danfuzz@milk.com","sentAt":"2013-03-21T23:06:40Z","receivedAt":"2013-03-21T23:06:40Z","isPatch":true,"sender":{"key":"danfuzz@milk.com","avatar":null},"body":"In particular, it can get called with four arguments if you happen to\nbe referring to a repo using the ssh:// scheme with a non-default port\nnumber.\n\nSigned-off-by: Dan Bornstein <danfuzz@milk.com>\n---\n Documentation/git.txt |    9 ++++++---\n 1 files changed, 6 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git.txt b/Documentation/git.txt\nindex 7efaa59..4307d62 100644\n--- a/Documentation/git.txt\n+++ b/Documentation/git.txt\n@@ -774,9 +774,12 @@ other\n \tIf this environment variable is set then 'git fetch'\n \tand 'git push' will use this command instead\n \tof 'ssh' when they need to connect to a remote system.\n-\tThe '$GIT_SSH' command will be given exactly two arguments:\n-\tthe 'username@host' (or just 'host') from the URL and the\n-\tshell command to execute on that remote system.\n+\tThe '$GIT_SSH' command will be given exactly two or\n+\tfour arguments: the 'username@host' (or just 'host')\n+\tfrom the URL and the shell command to execute on that\n+\tremote system, optionally preceded by '-p' (literally) and\n+\tthe 'port' from the URL when it specifies something other\n+\tthan the default SSH port.\n +\n To pass options to the program that you want to list in GIT_SSH\n you will need to wrap the program and options into a shell script,\n-- \n1.7.4.5\n"},{"id":"212287","messageId":"7v8v5ausbg.fsf@alter.siamese.dyndns.org","threadId":"33252","inReplyTo":"1363907200-12850-1-git-send-email-danfuzz@milk.com","subject":"Re: [PATCH] Correct the docs about GIT_SSH.","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-03-26T14:52:19Z","receivedAt":"2013-03-26T14:52:19Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Dan Bornstein <danfuzz@milk.com> writes:\n\n> In particular, it can get called with four arguments if you happen to\n> be referring to a repo using the ssh:// scheme with a non-default port\n> number.\n>\n> Signed-off-by: Dan Bornstein <danfuzz@milk.com>\n> ---\n>  Documentation/git.txt |    9 ++++++---\n>  1 files changed, 6 insertions(+), 3 deletions(-)\n\nLooks good.  Thanks.\n\n> diff --git a/Documentation/git.txt b/Documentation/git.txt\n> index 7efaa59..4307d62 100644\n> --- a/Documentation/git.txt\n> +++ b/Documentation/git.txt\n> @@ -774,9 +774,12 @@ other\n>  \tIf this environment variable is set then 'git fetch'\n>  \tand 'git push' will use this command instead\n>  \tof 'ssh' when they need to connect to a remote system.\n> -\tThe '$GIT_SSH' command will be given exactly two arguments:\n> -\tthe 'username@host' (or just 'host') from the URL and the\n> -\tshell command to execute on that remote system.\n> +\tThe '$GIT_SSH' command will be given exactly two or\n> +\tfour arguments: the 'username@host' (or just 'host')\n> +\tfrom the URL and the shell command to execute on that\n> +\tremote system, optionally preceded by '-p' (literally) and\n> +\tthe 'port' from the URL when it specifies something other\n> +\tthan the default SSH port.\n>  +\n>  To pass options to the program that you want to list in GIT_SSH\n>  you will need to wrap the program and options into a shell script,\n"}]}