I cannot use this overload, because as suggest @arrbee I want pass NULL out pointer to native git_repository_open_ext