Here's the low down:

Server

Ubuntu 10.10 64 bit

Git version 1.7.1

I'm running gitolite on this server and I have things setup on this front just fine. I'm able to clone and push to the repo no problem. The problem comes in a bit with my post-receive hook.

So I push my code up, the post-receive runs. It does a git checkout -f to my DocumentRoot, but the file permissions are set at (-r--------) instead of 0774 or something. I tried adding a chmod to the bottom of my post-receive, but it said I didn't have permissions to do that. I then logged in via ssh to the server, did a su gitolite and was able to run the chmod on the /var/www/site files no problem...

Anyway to automate that last step?!!?

Thanks!

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.