Ensure that the files array is initialized
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 11 Oct 2010 00:40:42 +0000 (20:40 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 11 Oct 2010 00:40:42 +0000 (20:40 -0400)
framework/Vcs/lib/Horde/Vcs/Git.php

index ca5ed0e..1930e3e 100644 (file)
@@ -752,6 +752,7 @@ class Horde_Vcs_Log_Git extends Horde_Vcs_Log
      */
     public function getHashForPath($path)
     {
+        $this->_ensureInitialized();
         return $this->_files[$path]['dstSha1'];
     }