Please use open_repo() to open the repository, like in the other porcelain functions (since this allows passing in an existing Repo object).