aosp 源码repo 报错

从清华源下载的初始化包,在repo init 阶段报错,
参考:
http://blog.csdn.net/miss_lazygoat/article/details/77508935?fps=1&locationNum=5
来解决
2>可以看到error是找不到HAED的指向:
error.GitError: manifests rev-list (u'^2736dfd46e8a30cf59a9cd6e93d9e56e87021f2a', 'HEAD', '--'): fatal: bad revision 'HEAD'
commit2736dfd46e8a30cf59a9cd6e93d9e56e87021f2a,就是HEAD应指向的commit,而现在出错找不到了
3>cd .repo/manifests
4>git branch -av,找到当前分支对应的远程分支
jessie@jessie:~/androidcode/temp/.repo/manifests$ git branch -av | grep 208
remotes/m/rel/8953/zd552kl/7.1.1-11.40.208 -> origin/rel/8953/zd552kl/7.1.1-11.40.208
remotes/origin/dev/ze550kl/asus/5.0.0-20150208 11a37fe set dev/ze550kl/asus/5.0.0-20150208
remotes/origin/rel/8953/zd552kl/7.1.1-11.40.208 2736dfd Remove opencv3 from the manifest
5>把HEAD切回原来指向的远程分支
git reset --hard remotes/origin/rel/8953/zd552kl/7.1.1-11.40.208

你可能感兴趣的:(aosp 源码repo 报错)