fix historic binary file downloads
[phorkie.git] / src / phorkie / File.php
index acc44cd884468e45ee8248dc8740e3a8661476c8..188c255918f8f0cbb44b983b4a94ac923f7ce274 100644 (file)
@@ -61,7 +61,11 @@ class File
     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();
         }