I have cloned a repo using root into my web-root folder and noticed this error. I have ran the following:
sudo chown -R git:http .git
sudo find .git -type d | sudo xargs chmod 755
sudo find .git/objects -type f | sudo xargs chmod 444
sudo find .git/ -type f | sudo grep -v /objects/ | sudo xargs chmod 644
git pull
and I am still getting this error