Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionGitUploadPackSSHWorkflow.php
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | $future = id(new ExecFuture('%C', $command)) | ||||
| ->setEnv($this->getEnvironment()); | ->setEnv($this->getEnvironment()); | ||||
| $log = $this->newProtocolLog($is_proxy); | $log = $this->newProtocolLog($is_proxy); | ||||
| if ($log) { | if ($log) { | ||||
| $this->setProtocolLog($log); | $this->setProtocolLog($log); | ||||
| $log->didStartSession($command); | $log->didStartSession($command); | ||||
| } | } | ||||
| if (!$is_proxy) { | |||||
| if (PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) { | |||||
| $protocol = new DiffusionGitUploadPackWireProtocol(); | |||||
| if ($log) { | |||||
| $protocol->setProtocolLog($log); | |||||
| } | |||||
| $this->setWireProtocol($protocol); | |||||
| } | |||||
| } | |||||
| $err = $this->newPassthruCommand() | $err = $this->newPassthruCommand() | ||||
| ->setIOChannel($this->getIOChannel()) | ->setIOChannel($this->getIOChannel()) | ||||
| ->setCommandChannelFromExecFuture($future) | ->setCommandChannelFromExecFuture($future) | ||||
| ->execute(); | ->execute(); | ||||
| if ($log) { | if ($log) { | ||||
| $log->didEndSession(); | $log->didEndSession(); | ||||
| } | } | ||||
| Show All 29 Lines | |||||