Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65814201
DiffusionGitUploadPackSSHWorkflow.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
Thu, Jun 6, 10:04
Size
876 B
Mime Type
text/x-php
Expires
Sat, Jun 8, 10:04 (2 d)
Engine
blob
Format
Raw Data
Handle
18131369
Attached To
rPH Phabricator
DiffusionGitUploadPackSSHWorkflow.php
View Options
<?php
final
class
DiffusionGitUploadPackSSHWorkflow
extends
DiffusionGitSSHWorkflow
{
protected
function
didConstruct
()
{
$this
->
setName
(
'git-upload-pack'
);
$this
->
setArguments
(
array
(
array
(
'name'
=>
'dir'
,
'wildcard'
=>
true
,
),
));
}
protected
function
executeRepositoryOperations
()
{
$repository
=
$this
->
getRepository
();
$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
;
}
}
Event Timeline
Log In to Comment