Lookup a tree object from the repository.
pointer to the looked up tree
the repo to use when locating the tree.
identity of the tree to locate.
0 or an error code