Page MenuHomePhabricator

Handle "-p port" flag in ssh-connect
ClosedPublic

Authored by epriestley on Dec 2 2013, 7:19 PM.
Tags
None
Referenced Files
F13178877: D7680.diff
Wed, May 8, 8:45 PM
Unknown Object (File)
Sat, May 4, 6:23 PM
Unknown Object (File)
Sat, May 4, 1:20 PM
Unknown Object (File)
Thu, May 2, 8:05 PM
Unknown Object (File)
Tue, Apr 30, 11:16 PM
Unknown Object (File)
Sat, Apr 27, 10:26 AM
Unknown Object (File)
Wed, Apr 17, 2:41 PM
Unknown Object (File)
Thu, Apr 11, 7:10 AM
Subscribers

Details

Reviewers
btrahan
Commits
Restricted Diffusion Commit
rPd59722321fe4: Handle "-p port" flag in ssh-connect
Summary

The documentation is explicit that Git does not pass this flag:

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.

This isn't true; it does. Accommodate it.

I'll see if I can fix this in the upstream, too.

Test Plan

Ran various ssh-connect commands with -p, etc.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This is already fixed in Git's HEAD. The new documentation reads:

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.