Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101228524
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
Fri, Feb 7, 00:30
Size
718 B
Mime Type
text/x-php
Expires
Sun, Feb 9, 00:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24115429
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
,
),
));
}
protected
function
executeRepositoryOperations
()
{
$args
=
$this
->
getArgs
();
$path
=
head
(
$args
->
getArg
(
'dir'
));
$repository
=
$this
->
loadRepository
(
$path
);
$future
=
new
ExecFuture
(
'git-upload-pack %s'
,
$repository
->
getLocalPath
());
return
$this
->
newPassthruCommand
()
->
setIOChannel
(
$this
->
getIOChannel
())
->
setCommandChannelFromExecFuture
(
$future
)
->
execute
();
}
}
Event Timeline
Log In to Comment