Cleans up the repository.