gitandroid-sourcerepoandroid-soong

Repo sync fails with "repo is not tracking a remote branch"


When I try to run repo sync I get this error:

info: A new version of repo is available warning: repo is not tracking a remote branch, so it will not receive updates repo reset: error: Entry 'git_superproject.py' not uptodate. Cannot merge. fatal: Could not reset index file to revision 'v2.16.7^0'.

I haven't done any project or repo changes.


Solution

  • Navigate to .repo/repo/ and run git status. If there are any changes, you should run git checkout -f to throw them away if you don't need them.