Mark all git repositories as safe
Newer versions of git include a safety mechanism that refuses to operate on repositories whose file owner is different from the current user. This safety check breaks git operations in the Docker container, when the current UID is different from the UID of the file owner most of the time. Specifically, Flask requires git to calculate the current revision number. Mark all repositories as safe to disable this safety check.
Source: https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks