Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionGitUploadPackSSHWorkflow.php
| Show All 10 Lines | $this->setArguments( | ||||
| 'wildcard' => true, | 'wildcard' => true, | ||||
| ), | ), | ||||
| )); | )); | ||||
| } | } | ||||
| protected function executeRepositoryOperations() { | protected function executeRepositoryOperations() { | ||||
| $repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
| if ($this->shouldProxy()) { | |||||
| $command = $this->getProxyCommand(); | |||||
| } else { | |||||
| $command = csprintf('git-upload-pack -- %s', $repository->getLocalPath()); | $command = csprintf('git-upload-pack -- %s', $repository->getLocalPath()); | ||||
| } | |||||
| $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); | $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); | ||||
| $future = id(new ExecFuture('%C', $command)) | $future = id(new ExecFuture('%C', $command)) | ||||
| ->setEnv($this->getEnvironment()); | ->setEnv($this->getEnvironment()); | ||||
| $err = $this->newPassthruCommand() | $err = $this->newPassthruCommand() | ||||
| ->setIOChannel($this->getIOChannel()) | ->setIOChannel($this->getIOChannel()) | ||||
| ->setCommandChannelFromExecFuture($future) | ->setCommandChannelFromExecFuture($future) | ||||
| Show All 10 Lines | |||||