post-receive hook permission denied “unable to create file” error
问题 Just got gitolite installed on my webserver and am trying to get a post-receive hook that can point the git dir in apache's direction. This is what my post-receive hook looks like. Got this script from the Using Git to manage a web site. #!/bin/sh echo "post-receive example.com triggered" GIT_WORK_TREE=/srv/sites/example.com/public git checkout -f I've also tried: #!/bin/sh echo "post-receive example.com triggered" unset GIT_INDEX_FILE export GIT_WORK_TREE=/srv/sites/example.com/public export