tree-walk.c: remove the_repo from get_tree_entry()