webgit_tree_action() dereferences an treeish to the tree object