git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Correct the docs about GIT_SSH.

From
DBDan Bornstein <danfuzz@milk.com>
Date
Mar 21, 2013, 23:06 UTC
Message-ID
<1363907200-12850-1-git-send-email-danfuzz@milk.com>

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
Next: Junio C Hamano
Message 1 of 2 in “Correct the docs about GIT_SSH.”
  1. Correct the docs about GIT_SSH.Dan Bornstein, Mar 21, 2013
  2. Junio C HamanoMar 26, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.