Merge pull request #2470 from libgit2/cmn/read-tree-cache Fill the tree cache when reading in a tree into an index