3

The company I work for is using Git for deployment and because of this it overwrites specific permissions and ownerships. What is the best way to make sure that the folder ownerships and permissions are preserved when a git pull is conducted?

I do development on OS X, using MAMP, push to a staging server which is a clone of the environment on production. When it reaches Staging I have to correct the permissions afterward but they are usually set to 664 instead of 644, causing issues with suPHP.

OpensaurusRex
  • 143
  • 3
  • 10

1 Answers1

3

Can you use one of the git hooks?

Probably the post-checkout hook.

slm
  • 7,355
  • 16
  • 54
  • 72
cjc
  • 24,533
  • 2
  • 49
  • 69
  • Would that work with git-pull? – OpensaurusRex Mar 09 '12 at 20:19
  • This isn't an answer, it is another question. Not helpful. Don't know why it was accepted. If it does work, then this questionable answer should be updated with an actual answer. Pretty please. – geoidesic Dec 13 '14 at 11:39