Creates a new repository with a specified name within the current session, and opens a specified file as part of the newly created repository.
A smart pointer to the newly created repository.