I\'m trying to setup a git repo on my live server to automatically update a subdomain on receive. Using this guide http://toroid.org/ams/git-website-howto.
hooks
The permissions on the worktree do not allow it to be read which causes the fatal: This operation must be run in a work tree error.
fatal: This operation must be run in a work tree
add cd /var/www/vhosts/domain.com/subdomains/staging/httpdocs to your post-recieve hook.
cd /var/www/vhosts/domain.com/subdomains/staging/httpdocs