1

i want to use Bonobo git server and want to initialize --shared --bare repositories.

i check the source code of bonobo git server and by default it creates bare repositories. i need to include --shared as well, but there is no function in LibGit2Sharp.init(path, bare) with shared option. i check the LibGit2Sharp source in git hub also.

is by default LibGit2Sharp.init creates shared repository?

Rifky
  • 1,444
  • 11
  • 26

1 Answers1

0

is by default LibGit2Sharp.init creates shared repository?

Similarly to git init, by default LibGit2Sharp will use permissions reported by umask(2). (ie. --shared=umask)

What you're requesting (eg. --shared, --shared=group or --shared=all) isn't supported by LibGit2Sharp as of now. However, it looks like it's already exposed by the underlying libgit2 library.

The best course of action regarding your question would to to log a feature request in the LibGit2Sharp issue tracker.

Considering this only requires to leverage some existing features of the underlying native library, the development of this feature shouldn't be very complex to perform.

nulltoken
  • 64,429
  • 20
  • 138
  • 130
  • i didn't understand ```by default LibGit2Sharp will use permissions reported by umask(2)``` what is umask(2) – Rifky Jul 09 '15 at 13:59
  • See the link in the answer pointing to the `git init` documentation. More info about `umask(2)` can be found in the linux man pages (cf. https://www.google.com/search?q=umask(2)) – nulltoken Jul 09 '15 at 15:33
  • i filed a feature request :-) [link](https://github.com/libgit2/libgit2sharp/issues/1151) – Rifky Jul 10 '15 at 03:57