Page MenuHomePhorge

DiffusionSSHGitUploadPackWorkflow.php
No OneTemporary

Size
951 B
Referenced Files
None
Subscribers
None

DiffusionSSHGitUploadPackWorkflow.php

<?php
final class DiffusionSSHGitUploadPackWorkflow
extends DiffusionSSHGitWorkflow {
public function didConstruct() {
$this->setName('git-upload-pack');
$this->setArguments(
array(
array(
'name' => 'dir',
'wildcard' => true,
),
));
}
protected function executeRepositoryOperations() {
$args = $this->getArgs();
$path = head($args->getArg('dir'));
$repository = $this->loadRepository($path);
$command = csprintf('git-upload-pack -- %s', $repository->getLocalPath());
$command = PhabricatorDaemon::sudoCommandAsDaemonUser($command);
$future = id(new ExecFuture('%C', $command))
->setEnv($this->getEnvironment());
$err = $this->newPassthruCommand()
->setIOChannel($this->getIOChannel())
->setCommandChannelFromExecFuture($future)
->execute();
if (!$err) {
$this->waitForGitClient();
}
return $err;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Jun 18, 10:10 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
232285
Default Alt Text
DiffusionSSHGitUploadPackWorkflow.php (951 B)

Event Timeline