Initializes the repository.