Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123556074
DiffusionSSHGitUploadPackWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 28, 06:31
Size
749 B
Mime Type
text/x-php
Expires
Wed, Jul 30, 06:31 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27712249
Attached To
rPH Phabricator
DiffusionSSHGitUploadPackWorkflow.php
View Options
<?php
final
class
DiffusionSSHGitUploadPackWorkflow
extends
DiffusionSSHGitWorkflow
{
public
function
didConstruct
()
{
$this
->
setName
(
'git-upload-pack'
);
$this
->
setArguments
(
array
(
array
(
'name'
=>
'dir'
,
'wildcard'
=>
true
,
),
));
}
public
function
getRequestPath
()
{
$args
=
$this
->
getArgs
();
return
head
(
$args
->
getArg
(
'dir'
));
}
protected
function
executeRepositoryOperations
(
PhabricatorRepository
$repository
)
{
$future
=
new
ExecFuture
(
'git-upload-pack %s'
,
$repository
->
getLocalPath
());
return
$this
->
newPassthruCommand
()
->
setIOChannel
(
$this
->
getIOChannel
())
->
setCommandChannelFromExecFuture
(
$future
)
->
execute
();
}
}
Event Timeline
Log In to Comment