This "fix" breaks deployments where files are checked out as the root user and then chowned to an app-specific user. Any subsequent action as the root user will fail.
It seems they forgot to provide an exception for the root user or a way to disable this "feature" on a global level, instead of per-directory.
It seems they forgot to provide an exception for the root user or a way to disable this "feature" on a global level, instead of per-directory.