Skip to content

Commit f4ccd9f

Browse files
committed
Merge branch 'maint-1.8.1' into maint
* maint-1.8.1: Correct the docs about GIT_SSH.
2 parents 50734ea + e39c695 commit f4ccd9f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Documentation/git.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,12 @@ other
774774
If this environment variable is set then 'git fetch'
775775
and 'git push' will use this command instead
776776
of 'ssh' when they need to connect to a remote system.
777-
The '$GIT_SSH' command will be given exactly two arguments:
778-
the 'username@host' (or just 'host') from the URL and the
779-
shell command to execute on that remote system.
777+
The '$GIT_SSH' command will be given exactly two or
778+
four arguments: the 'username@host' (or just 'host')
779+
from the URL and the shell command to execute on that
780+
remote system, optionally preceded by '-p' (literally) and
781+
the 'port' from the URL when it specifies something other
782+
than the default SSH port.
780783
+
781784
To pass options to the program that you want to list in GIT_SSH
782785
you will need to wrap the program and options into a shell script,

0 commit comments

Comments
 (0)