Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895708
DiffusionSSHGitReceivePackWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
907 B
Referenced Files
None
Subscribers
None
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
(
)
)
;
$err
=
$this
->
passthruIO
(
$future
)
;
if
(
!
$err
)
{
$repository
->
writeStatusMessage
(
PhabricatorRepositoryStatusMessage
::
TYPE_NEEDS_UPDATE
,
PhabricatorRepositoryStatusMessage
::
CODE_OKAY
)
;
}
return
$err
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:54 (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129146
Default Alt Text
DiffusionSSHGitReceivePackWorkflow.php (907 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment