Differential D18912 Diff 45373 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 148 Lines • ▼ Show 20 Lines | protected function executeRepositoryOperations() { | ||||
| if ($this->shouldProxy()) { | if ($this->shouldProxy()) { | ||||
| $command = $this->getProxyCommand(); | $command = $this->getProxyCommand(); | ||||
| $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->getUser()->getUsername()); | $this->getSSHUser()->getUsername()); | ||||
| $cwd = PhabricatorEnv::getEmptyCWD(); | $cwd = PhabricatorEnv::getEmptyCWD(); | ||||
| } | } | ||||
| $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); | $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); | ||||
| $future = new ExecFuture('%C', $command); | $future = new ExecFuture('%C', $command); | ||||
| // If we're receiving a commit, svnserve will fail to execute the commit | // If we're receiving a commit, svnserve will fail to execute the commit | ||||
| // hook with an unhelpful error if the CWD isn't readable by the user we | // hook with an unhelpful error if the CWD isn't readable by the user we | ||||
| ▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines | |||||