0

I'm using a bare sharedRepository to allow a group of developers to push.

In order to keep the good file group on pushes, I changed SGID of objects

$ sudo chmod -R g+s my_repository/objects

If it really is the right way to do, should I change the SGID of any other directories (branches, refs, ...) ?

Pierre de LESPINAY
  • 40,390
  • 50
  • 195
  • 282

1 Answers1

1

In your other question I suggested changing at least refs. Based on the git repository layout documentation here I don't think just changing objects and refs is enough. You'll need to change this setting on any directory which contains a file that could be changed by a push.

asm
  • 8,344
  • 3
  • 22
  • 44