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

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

最终从 * 得到答案:

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, 问题解决了。

 

上一篇:Android 判断App运行在模拟器还是真机上的最终解决方案


下一篇:F - Sereja and Suffixes