pre-receive: adjust pack-*.idx permissions too
commit919bbae32ba8104ad5a9074d6cbc9394257f1dd6
authorKyle J. McKay <mackyle@gmail.com>
Sat, 10 Feb 2018 15:22:30 +0000 (10 07:22 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 10 Feb 2018 15:22:30 +0000 (10 07:22 -0800)
treeeffce8dfbf1c6609c81e1ee7d15b905020bb8ee9
parent54fdc41b3e5f56a886dbab9fe48e67ec31e45684
pre-receive: adjust pack-*.idx permissions too

We have been adjusting the permissions of pack-*.pack files for some
time now at pre-receive time.  Doing so makes it possible to perform
repository maintenance more easily and reliably by allowing packs that
have been pushed by a chroot jail owner to be manipulated by the
Girocco maintenance user.

Expand that to include all pack extensions.  In order to rename pack
files the pack-*.idx also needs group write permission or else the
Girocco maintenance user will be forced to copy rather than just
hard-link during the rename operation which is much less efficient.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
hooks/pre-receive