Get tree correctly when it is with sha hash

For example, https://github.com/buunguyen/octotree/tree/2d46b30a7db6a5e03d0da81ff5c7c74b3e793805