replace-object.c: remove the_repository from prepare_replace_object