Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96636242
DiffusionGitSSHWorkflow.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
Sun, Dec 29, 08:02
Size
854 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 08:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23220677
Attached To
rPH Phabricator
DiffusionGitSSHWorkflow.php
View Options
<?php
abstract
class
DiffusionGitSSHWorkflow
extends
DiffusionSSHWorkflow
{
protected
function
writeError
(
$message
)
{
// Git assumes we'll add our own newlines.
return
parent
::
writeError
(
$message
.
"
\n
"
);
}
protected
function
identifyRepository
()
{
$args
=
$this
->
getArgs
();
$path
=
head
(
$args
->
getArg
(
'dir'
));
return
$this
->
loadRepositoryWithPath
(
$path
);
}
protected
function
waitForGitClient
()
{
$io_channel
=
$this
->
getIOChannel
();
// If we don't wait for the client to close the connection, `git` will
// consider it an early abort and fail. Sit around until Git is comfortable
// that it really received all the data.
while
(
$io_channel
->
isOpenForReading
())
{
$io_channel
->
update
();
$this
->
getErrorChannel
()->
flush
();
PhutilChannel
::
waitForAny
(
array
(
$io_channel
));
}
}
}
Event Timeline
Log In to Comment