#error cannot open .git FETCH_HEAD permission denied

16 messages · Page 1 of 1 (latest)

sand kraken
#

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

#

originally, I didn't have permission to write to the web-root folder, I have long since gave myself the http group and thought i fixed all the other permission issues

#

My past self wasnt too smart

#

these are the permissions now

#

git pull

#

i dont have a desktop

#

its a headless server

#

i got an idea

#

I can just delete it and reinstall

#

that seems to have worked

#

[SOLVED] error cannot open .git FETCH_HEAD permission denied

#

hmm

#

error cannot open .git FETCH_HEAD permission denied

#

its not fixed

#

I think the issue is that I am trying to set up the repo to allow group access to pull and fetch

sand kraken
#

Even with a shared repo, there are still issues with git pull