致命:不安全的存储库(“/azerothcore”归其他人所有)

fatal: unsafe repository ('/azerothcore' is owned by someone else)

fatal: unsafe repository ('/azerothcore' is owned by someone else)
To add an exception for this directory, call:

        git config --global --add safe.directory /azerothcore
--
    Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t
    Continuing anyway - note that the versionstring will be set to "unknown 1970-01-01 00:00:00 (Archived)"

我在 Windows 10,docker 桌面上 git --version 2.36 on the latest master AC branch (07.05)

甚至无法检查当前哈希值Picture

我已经尝试了相关线程中建议的所有方法。即使通过在我的 .gitconfig 中设置 [safe] directory = *(我是唯一的用户,所以这并不重要)来禁用该安全功能也不能解决这个问题。

编辑:我使用 docker 编译,每次编译都会弹出,不,它最近在 git 安全更新后开始显示。

这可能不是最好的方法,但我只是修改了 apps\docker\docker-build-prod.sh 以在调用 bash acore.sh compiler build

之前添加 git config --global --add safe.directory /azerothcore