Merge pull request #1849 from whavinga/treewalker

Treewalker
Add tests for git_tree_walk

This tests the fixes for issues from #1849
Minimal test for fix in 4e01e30