Init the repository.