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); } }