Detected dubious ownership in repository
I have a django project called my_project
containing a database. In order to run the website with apache, I had to modify the access rights and ownership with
sudo chown www-data:www-data my_project/
sudo chmod 755 my_project/
At least this is how I got it to work.
But now, when I run
git pull
I get the following error message:
fatal: detected dubious ownership in repository
Can I just suppress this error message or is this a security issue? Please let me know if I have to configure something differently.
edit:
There are 2 questions I have:
- how can I configure the access rights of my project such that it runs, but git does not complain? The main problem seems to be the line
sudo chown www-data:www-data my_project/
- Could someone briefly explain the issue if I suppress this warning?