tree.c: make read_tree*() take 'struct repository *'