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