Fix a few places that still need the full log list. Our goal should be to call this...
authorChuck Hagenbuch <chuck@horde.org>
Tue, 9 Nov 2010 04:39:45 +0000 (23:39 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 9 Nov 2010 04:39:45 +0000 (23:39 -0500)
framework/Vcs/lib/Horde/Vcs/File/Git.php

index de17a75..72cd84a 100644 (file)
@@ -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])) {