git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
customizable top bar
[phorkie.git]
/
src
/
phorkie
/
File.php
diff --git
a/src/phorkie/File.php
b/src/phorkie/File.php
index acc44cd884468e45ee8248dc8740e3a8661476c8..188c255918f8f0cbb44b983b4a94ac923f7ce274 100644
(file)
--- a/
src/phorkie/File.php
+++ b/
src/phorkie/File.php
@@
-61,7
+61,11
@@
class File
public function getContent()
{
if ($this->repo->hash) {
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();
}
->addArgument($this->repo->hash . ':' . $this->path)
->execute();
}