Hello, I'm running a PHP script which pulls & checkouts a Git repo. The script clones first the repo and on each next call it should get all new changes (git clone and than git pull). Sometime I get the message:
git checkout-index unable to create file (permission denied) exspecially on the .gitignore files. The webserver run the script and the file / directory owner is the webserver, also of the .gitignore files, so the message "permission denied" is wrong. I don't understand why the git client create this message and this problem. The PHP script checks first if the directory exists, if not, it runs git clone, if it exists it calls git --git-dir=repodir pull. Can I setup a flag to the git client, that it should only overwrite all files, so that the error is not shown? Thanks Phil -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/1a96AGdPh8IJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
