repo sync error: .repo/manifests/: contains uncommitted changes

andorid 源码库同步,报错如标题,好几次想放弃,尝试了网上不少办法,无效,

最终从 stackoverflow 得到答案:

After issued repo sync, I got a error message like error: .repo/manifests/: contains uncommitted changes, but git status or git diff showed nothing changed.

What's cause of the problem and why it happened?

老外的 git status or git diff 没有变化,可我在 .repo/manifests 执行git status 有变化

Answer is :

Find the root cause, all files under .repo/manifests were changed with their filemode, "git config core.filemode false" can fix this "Modify".

翻译过来就是,进入.repo/manifests 目录,然后执行 git config core.filemode false, 问题解决了。

 

posted @ 2021-02-06 10:25  GoneWithWind  阅读(386)  评论(0编辑  收藏  举报