sub-.git_tree function

Extract object from tree