Differential D19357 Diff 46307 src/applications/diffusion/ssh/DiffusionSubversionServeSSHWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionSubversionServeSSHWorkflow.php
| Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | protected function executeRepositoryOperations() { | ||||
| $repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
| $args = $this->getArgs(); | $args = $this->getArgs(); | ||||
| if (!$args->getArg('tunnel')) { | if (!$args->getArg('tunnel')) { | ||||
| throw new Exception(pht('Expected `%s`!', 'svnserve -t')); | throw new Exception(pht('Expected `%s`!', 'svnserve -t')); | ||||
| } | } | ||||
| if ($this->shouldProxy()) { | if ($this->shouldProxy()) { | ||||
| $command = $this->getProxyCommand(); | // NOTE: We're always requesting a writable device here. The request | ||||
| // might be read-only, but we can't currently tell, and SVN requests | |||||
| // can mix reads and writes. | |||||
| $command = $this->getProxyCommand(true); | |||||
| $this->isProxying = true; | $this->isProxying = true; | ||||
| $cwd = null; | $cwd = null; | ||||
| } else { | } else { | ||||
| $command = csprintf( | $command = csprintf( | ||||
| 'svnserve -t --tunnel-user=%s', | 'svnserve -t --tunnel-user=%s', | ||||
| $this->getSSHUser()->getUsername()); | $this->getSSHUser()->getUsername()); | ||||
| $cwd = PhabricatorEnv::getEmptyCWD(); | $cwd = PhabricatorEnv::getEmptyCWD(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines | |||||