mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 18:32:41 +01:00
27 lines
474 B
PHP
27 lines
474 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionSSHGitUploadPackWorkflow
|
||
|
extends DiffusionSSHGitWorkflow {
|
||
|
|
||
|
public function didConstruct() {
|
||
|
$this->setName('git-upload-pack');
|
||
|
$this->setArguments(
|
||
|
array(
|
||
|
array(
|
||
|
'name' => 'dir',
|
||
|
'wildcard' => true,
|
||
|
),
|
||
|
));
|
||
|
}
|
||
|
|
||
|
public function isReadOnly() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function getRequestPath() {
|
||
|
$args = $this->getArgs();
|
||
|
return head($args->getArg('dir'));
|
||
|
}
|
||
|
|
||
|
}
|