I'm using a bare remote repository on my webserver with a post-receive hook that will automatically push my files in the public_html directory.
The problem is, I'm using codeigniter and the index.php file has to be chmod 755. I changed it on the server with filezilla, but after every push the index.php file gets set to 644, which results in an internal server error.
This happens even when the index.php isn't changed or stashed..
I've searched for a solution, but so far without luck.. Could someone help me with this? I'm using the Tower GIT client to commit/push by the way.
Thanks