Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104522970
DiffusionSSHGitReceivePackWorkflow.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, Mar 10, 03:44
Size
707 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 03:44 (2 d)
Engine
blob
Format
Raw Data
Handle
24803591
Attached To
rPH Phabricator
DiffusionSSHGitReceivePackWorkflow.php
View Options
<?php
final
class
DiffusionSSHGitReceivePackWorkflow
extends
DiffusionSSHGitWorkflow
{
public
function
didConstruct
()
{
$this
->
setName
(
'git-receive-pack'
);
$this
->
setArguments
(
array
(
array
(
'name'
=>
'dir'
,
'wildcard'
=>
true
,
),
));
}
public
function
isReadOnly
()
{
return
false
;
}
public
function
getRequestPath
()
{
$args
=
$this
->
getArgs
();
return
head
(
$args
->
getArg
(
'dir'
));
}
protected
function
executeRepositoryOperations
(
PhabricatorRepository
$repository
)
{
$future
=
new
ExecFuture
(
'git-receive-pack %s'
,
$repository
->
getLocalPath
());
return
$this
->
passthruIO
(
$future
);
}
}
Event Timeline
Log In to Comment