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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -