projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68b8b8f
)
Fix a few places that still need the full log list. Our goal should be to call this...
author
Chuck Hagenbuch
<chuck@horde.org>
Tue, 9 Nov 2010 04:39:45 +0000
(23:39 -0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Tue, 9 Nov 2010 04:39:45 +0000
(23:39 -0500)
framework/Vcs/lib/Horde/Vcs/File/Git.php
patch
|
blob
|
history
diff --git
a/framework/Vcs/lib/Horde/Vcs/File/Git.php
b/framework/Vcs/lib/Horde/Vcs/File/Git.php
index
de17a75
..
72cd84a
100644
(file)
--- a/
framework/Vcs/lib/Horde/Vcs/File/Git.php
+++ b/
framework/Vcs/lib/Horde/Vcs/File/Git.php
@@
-129,6
+129,7
@@
class Horde_Vcs_File_Git extends Horde_Vcs_File
*/
public function getHashForRevision($rev)
{
+ $this->_ensureLogsInitialized();
if (!isset($this->logs[$rev])) {
throw new Horde_Vcs_Exception('This file doesn\'t exist at that revision');
}
@@
-227,6
+228,8
@@
class Horde_Vcs_File_Git extends Horde_Vcs_File
return parent::queryLastLog();
}
+ $this->_ensureLogsInitialized();
+
$rev = reset($this->_revlist[$this->_branch]);
if (!is_null($rev)) {
if (isset($this->logs[$rev])) {