[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 abstract class DiffusionSSHGitWorkflow extends DiffusionSSHWorkflow { 4 5 protected function writeError($message) { 6 // Git assumes we'll add our own newlines. 7 return parent::writeError($message."\n"); 8 } 9 10 protected function waitForGitClient() { 11 $io_channel = $this->getIOChannel(); 12 13 // If we don't wait for the client to close the connection, `git` will 14 // consider it an early abort and fail. Sit around until Git is comfortable 15 // that it really received all the data. 16 while ($io_channel->isOpenForReading()) { 17 $io_channel->update(); 18 $this->getErrorChannel()->flush(); 19 PhutilChannel::waitForAny(array($io_channel)); 20 } 21 } 22 23 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |