git: having trouble privileges -
i have web project i'm developing, , want push remote username, ssh://myusername@remote:/home/someotheruser/project.git.
the problem i want push project inside user's home directory.
i start getting error of permissions , project.git/hooks/post-receive not fire (i had execute manually) , web project dose not respond on browser until change ownership of public_html/* user;
what understood :
- i push project errors of permission yet project pushed , on server
- the hook
post-receivedid not fire had go root , fire it - when fire
post-receiveroot, files 'checkedout' (from.gitpublic_html) ownedrootuser (/home/someuser/project.git) not have permission use these files 'checkedout' - so
chown -r someuser:someuser *insidepublic_htmlto solve problem
how can solve this?
Comments
Post a Comment