Get tree correctly when it is with sha hash
Merge pull request #65 from Ephemera/tree-with-sha

Get tree correctly when it is with sha hash