repository: initialize the_repository in main()