Page MenuHomePhabricator

Serve Git reads over SSH
ClosedPublic

Authored by epriestley on Oct 26 2013, 7:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 9, 8:06 PM
Unknown Object (File)
Sun, May 4, 7:58 AM
Unknown Object (File)
Apr 19 2025, 1:32 PM
Unknown Object (File)
Apr 9 2025, 7:01 PM
Unknown Object (File)
Apr 3 2025, 6:16 PM
Unknown Object (File)
Mar 15 2025, 3:29 AM
Unknown Object (File)
Mar 15 2025, 2:35 AM
Unknown Object (File)
Mar 13 2025, 12:43 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP9a2e45ef12ea: Serve Git reads over SSH
Summary

Like D7423, but for SSH.

Test Plan

Ran git clone ssh://..., got a clone.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan added inline comments.
src/infrastructure/ssh/PhabricatorSSHWorkflow.php
71

so this closes stdin?

src/infrastructure/ssh/PhabricatorSSHWorkflow.php
71

Yeah -- by default, write() closes the subprocess's stdin, unless the second parameter ("$keep_pipe") is set to true. At some point, it would probably be cleaner to replace this with $exec_channel->closeWriteChannel() or something, but that doesn't exist yet.