Our workflow is develop on a local machine, commit the changes to a central repository, then check out the branch of that repository that we need.
The problem is that Git changes ownership and even file permissions of the files that it checks out, depending on the user making the checkout. A direct result of this is that our CSS files become unreadable after a checkout, as Git changes the file ownership to the person who did the Git pull in the webroot.
Example:
- Before
git pull
:style.css
owned byuser_a:group_a
- After
git pull
:style.css
owned byuser_b:user_b
I want to keep ownership as user_a:group_a
. I don't want to have to log in every time one of my team has made a change to the files, and change the ownership back to the original configuration.
How do other people deal with this? How do you deal with repositories used by multiple users. We have suphp on our system and cannot take it off.