The failure occurs when a git operation triggers recently added safe directory checks to alert the user when there is a UID or GID mismatch. Because the ENTRYPOINT of the hugo-extended container is a call to `hugo`, there is no ability for the end user of the container to tell git to trust the /src directory before hugo is started.
It is possible to override the UID and GID when using the container, but this causes permission errors and does not seem like a user-friendly path forward.
After this change, the hugo-extended container will contain a global git configuration to trust the /src directory. This may have security implications that have not been considered, but since only the project directory is mounted to /src, this approach seems to respect the intent of git safe directory checks.