2021年10月25日

Android源码编译repo同步问题

作者 huruwo

repo同步问题和解决方案

info: A new version of repo is available
repo: warning: verification of repo code has been disabled;
repo will not be able to verify the integrity of itself.

warning: repo is not tracking a remote branch, so it will not receive updates
repo reset: error: Entry 'command.py' not uptodate. Cannot merge.
fatal: Could not reset index file to revision '0ec2029833ffa85400b729dc3b7039661eb42619'.

https://stackoverflow.com/questions/33690237/repo-sync-error-repo-manifests-contains-uncommitted-changes

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

2.Go to ./repo/manifests
$ git reset --hard
$ repo sync