Page MenuHomePhorge

DiffusionSSHGitWorkflow.php
No OneTemporary

Size
686 B
Referenced Files
None
Subscribers
None

DiffusionSSHGitWorkflow.php

<?php
abstract class DiffusionSSHGitWorkflow 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

Mime Type
text/x-php
Expires
Wed, Jun 18, 8:14 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
238825
Default Alt Text
DiffusionSSHGitWorkflow.php (686 B)

Event Timeline