config: use core.sharedRepository=2 by default
Instead of initializing repositories using core.sharedRepository=1,
switch to using core.sharedRepository=2 by default.
Add an obscure setting that allows this to be controlled.
Make sure update-all-config.pl understands the new setting.
Since the umask is often set to something no more restrictive
than 002, in practice, the previous default of 1 was usually
acting like a default of 2.
However, in order to run something like git-daemon to serve
repositories over git: protocol while git-daemon is running as
the 'nobody' user, the repositories need to always be world
readable. Setting core.sharedRepository=2 makes sure this
happens.
While it was mostly happening by default anyway thanks to the
behavior of core.sharedRepository=1 and the usual setting of
the umask to 002, make it explicit with core.sharedRepository=2.
With this new setting, accessing the repositories via non-Girocco
means directly via `git` with a umask that masks out all 'other'
permissions will no longer result in repositories that cannot be
served properly by a daemon running as the 'nobody' user.
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>