Flatten repository.