Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F436526
DiffusionGitSSHWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
686 B
Referenced Files
None
Subscribers
None
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
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
));
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 11:48 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
62785
Default Alt Text
DiffusionGitSSHWorkflow.php (686 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment