I have a local repo and remote --bare repository set.
Each of my hosting packages has its own user and group (with no ssh access), so I have so permissions problems.
I have worked around this by setting up my remote repo as ssh://root@... and createing post-receive hook to apply chown correctuser:correctgroup -R public_html/
This is as you can see not ideal as I involve 'root' and that should not be the case.
Would 'git init --bare --shared
' help at all?
I would like to be able to push remotely as root and adding 'git' to all of my groups (packages) didn't help either.
Please advise.