Differential D7683 Diff 17352 src/applications/diffusion/ssh/DiffusionSSHSubversionServeWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionSSHSubversionServeWorkflow.php
| Show All 32 Lines | final class DiffusionSSHSubversionServeWorkflow | ||||
| } | } | ||||
| protected function executeRepositoryOperations() { | protected function executeRepositoryOperations() { | ||||
| $args = $this->getArgs(); | $args = $this->getArgs(); | ||||
| if (!$args->getArg('tunnel')) { | if (!$args->getArg('tunnel')) { | ||||
| throw new Exception("Expected `svnserve -t`!"); | throw new Exception("Expected `svnserve -t`!"); | ||||
| } | } | ||||
| $command = csprintf('svnserve -t'); | $command = csprintf( | ||||
| 'svnserve -t --tunnel-user=%s', | |||||
| $this->getUser()->getUsername()); | |||||
| $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); | $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); | ||||
| $future = new ExecFuture('%C', $command); | $future = new ExecFuture('%C', $command); | ||||
| $this->inProtocol = new DiffusionSubversionWireProtocol(); | $this->inProtocol = new DiffusionSubversionWireProtocol(); | ||||
| $this->outProtocol = new DiffusionSubversionWireProtocol(); | $this->outProtocol = new DiffusionSubversionWireProtocol(); | ||||
| $err = id($this->newPassthruCommand()) | $err = id($this->newPassthruCommand()) | ||||
| ▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines | |||||