You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how to create a new Git repository, and having it shared by the owning group.
Libgit2 allows this with the GIT_REPOSITORY_INIT_SHARED_GROUP member from the git_repository_init_mode_t enum, passing it to the git_repository_init_ext() function.
However, I can't figure out how to do that with pygit2. Is this simply not exposed yet?
Apologies if I merely missed it, but I couldn't find it in the documentation or in the pygit2 source code. 😃
Activity
bochecha commentedon Jan 31, 2015
Reading the libgit2 source code, I figured I could simply use the actual value directly:
So there's a workaround at least, but using something like
mode=pygit2.repository.InitSharedGroup(or any other naming) would be much nicer.jdavid commentedon Feb 1, 2015
You could use
pygit2.C.GIT_REPOSITORY_INIT_SHARED_GROUPand now with latest commit justpgyti2.GIT_REPOSITORY_INIT_SHARED_GROUP