From 282f57032bbdd426cbdb4e03ad7379e3825befe6 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 17 Apr 2012 22:02:27 +0200 Subject: fix historic binary file downloads --- src/phorkie/File.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/phorkie/File.php') diff --git a/src/phorkie/File.php b/src/phorkie/File.php index acc44cd..188c255 100644 --- a/src/phorkie/File.php +++ b/src/phorkie/File.php @@ -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(); } -- cgit v1.2.3