From 8bf9dfab7da9f4867dce86a8734601422d90fad8 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 10 Oct 2010 20:40:42 -0400 Subject: [PATCH] Ensure that the files array is initialized --- framework/Vcs/lib/Horde/Vcs/Git.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/Vcs/lib/Horde/Vcs/Git.php b/framework/Vcs/lib/Horde/Vcs/Git.php index ca5ed0e7f..1930e3e0f 100644 --- a/framework/Vcs/lib/Horde/Vcs/Git.php +++ b/framework/Vcs/lib/Horde/Vcs/Git.php @@ -752,6 +752,7 @@ class Horde_Vcs_Log_Git extends Horde_Vcs_Log */ public function getHashForPath($path) { + $this->_ensureInitialized(); return $this->_files[$path]['dstSha1']; } -- 2.11.0