public function getContent()
{
if ($this->repo->hash) {
- return $this->repo->getVc()->getCommand('show')
+ //quick hack until https://pear.php.net/bugs/bug.php?id=19385 is fixed
+ $cmd = new GitCommandBinary($this->repo->getVc());
+ $cmd->setSubCommand('show');
+ return //$this->repo->getVc()->getCommand('show')
+ $cmd
->addArgument($this->repo->hash . ':' . $this->path)
->execute();
}
--- /dev/null
+<?php
+namespace phorkie;
+
+class GitCommandBinary extends \VersionControl_Git_Util_Command
+{
+ /**
+ * Do not strip anything, we're accessing binary files
+ */
+ public function stripEscapeSequence($string)
+ {
+ return $string;
+ }
+}
+
+?>
\ No newline at end of file