Git sets permission to read only instead of read & execute

Daniel_Dog

Verified User
Joined
Nov 16, 2019
Messages
450
Hello everyone,

I am currently trying to setup a new Git repo (in "Advanced > Git") so that I can auto update my site when I push an update to the repo.
When I fetch & deploy then all files get read only permission.
This is a problem because .htaccess and .php files need read & execute to work. (Otherwise I get a 403 error page and see in the site log it is missing the correct permissions.)

The weird thing is that I did the same thing a couple of months ago for my dev site (but on the same DA install) and all the files got read and execute permission so it works without issue.

I have fixed it for now by just setting all the files to read and execute but I am worried this is going to create issues again when I add new files to the repo since Git (not GIT itself but the feature Git in DA) does not set the correct permission.
 
Back
Top