This is an umbrella task covering this problem and similar ones:
fatal: detected dubious ownership in repository at '/var/www/phorge'
In short:
- Sometime it's difficult to detect these issues since they are just suppressed without error logs
- example: T15243
- Sometime it's not easy to fix it since the .gitconfig configuration of the webserver user is often not usable
- example: T15281
- The documentation does not mention anything about that
Proposed fix
At the moment, this is the proposed solution:
git config --system --add safe.directory /var/www/arcanist git config --system --add safe.directory /var/www/phorge
Please shared a comment if that works for you.
In case, we should add that in the installation instructions.
Possible Proactive Things
- D25236 Propose an update in the documentation to fix at system level
- D25148 Propose a patch to discover git errors from the console, instead of having them nowhere
- D25149 Propose a patch to allow the www-data user to read its own .gitconfig safe.directory stuff, so you can also fix without git config --system