小编Hui*_*ang的帖子

Git 子模块更新失败,并显示“致命:在存储库中检测到可疑的所有权”

我在我的 Linux 工作站上安装了一个新的硬盘驱动器。看起来效果很好。我想在新磁盘中下载一些存储库。所以我执行了git clone XXX,效果很好。但是当我在文件夹中cd并执行git submodule update --init --recursive. 它失败了

fatal: detected dubious ownership in repository at '/media/data/users/jhu3szh/serialize'
To add an exception for this directory, call:

git config --global --add safe.directory /media/data/users/jhu3szh/serialize
Run Code Online (Sandbox Code Playgroud)

我想也许这只是一个轻微的警告,所以我就执行了git config --global --add safe.directory /media/data/users/jhu3szh/serialize。然而,当我再次执行 Git 子模块时,又出现了更多类似的错误。存储库中有许多子模块。

发生的事情有何解释?

linux filesystems git ubuntu cve-2022-24765

320
推荐指数
8
解决办法
53万
查看次数

标签 统计

cve-2022-24765 ×1

filesystems ×1

git ×1

linux ×1

ubuntu ×1