You can now disable the repository directory ownership validation by using the GIT_OPT_SET_OWNER_VALIDATION with git_libgit2_opts(): libgit2/libgit2#6266
This option is not yet exposed in the C# bindings, e.g. in the GlobalSettings static class.
Thanks.