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-receive did not fire had go root , fire it
  • when fire post-receive root, files 'checkedout' (from .git public_html) owned root user (/home/someuser/project.git) not have permission use these files 'checkedout'
  • so chown -r someuser:someuser * inside public_htmlto solve problem

how can solve this?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -