From 804f81e76ebb3d8bf13fd7f12b3b0cc2768fea3f Mon Sep 17 00:00:00 2001 From: Steven Verbeek Date: Sat, 12 Jan 2013 19:00:42 -0400 Subject: [PATCH] Added type to tree entry object --- src/Gitonomy/Git/Tree.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gitonomy/Git/Tree.php b/src/Gitonomy/Git/Tree.php index a4a0d6d..f45ccf9 100644 --- a/src/Gitonomy/Git/Tree.php +++ b/src/Gitonomy/Git/Tree.php @@ -48,9 +48,9 @@ protected function initialize() foreach ($parser->entries as $entry) { list($mode, $type, $hash, $name) = $entry; if ($type == 'blob') { - $this->entries[$name] = array($mode, $this->repository->getBlob($hash)); + $this->entries[$name] = array($mode, $this->repository->getBlob($hash), $type); } else { - $this->entries[$name] = array($mode, $this->repository->getTree($hash)); + $this->entries[$name] = array($mode, $this->repository->getTree($hash), $type); } }