Then we have to duplicate the code from git_repository_init(), isn't?