执行的操作

repo init -u git://192.168.1.183/android/platform/manifest.git -b android-4.2.1_r1.2
或者
repo init -b android-4.2.1_r1.2

出现问题

Traceback (most recent call last): File "/work/information/source_code/google/abc/.repo/repo/main.py", line 414, in <module> _Main(sys.argv[1:]) File "/work/information/source_code/google/abc/.repo/repo/main.py", line 390, in _Main result = repo._Run(argv) or 0 File "/work/information/source_code/google/abc/.repo/repo/main.py", line 138, in _Run result = cmd.Execute(copts, cargs) File "/work/information/source_code/google/abc/.repo/repo/subcmds/init.py", line 347, in Execute self._SyncManifest(opt) File "/work/information/source_code/google/abc/.repo/repo/subcmds/init.py", line 203, in _SyncManifest m.Sync_LocalHalf(syncbuf) File "/work/information/source_code/google/abc/.repo/repo/project.py", line 1120, in Sync_LocalHalf upstream_gain = self._revlist(not_rev(HEAD), revid) File "/work/information/source_code/google/abc/.repo/repo/project.py", line 2006, in _revlist return self.work_git.rev_list(*a, **kw) File "/work/information/source_code/google/abc/.repo/repo/project.py", line 2155, in rev_list p.stderr)) error.GitError: manifests rev-list ('^HEAD', '4c2be345d6bfc25db87f23749912ae9d98d2ad62', '--'): fatal: bad revision '^HEAD'

解决方案

删除.repo目录下的除repo文件夹之外的其它所有文件,重新执行inti和sync
可以执行: rm -rf .repo/manifest*

更多相关文章

  1. 状态栏透明
  2. Cocos2d-x + Android(安卓)+ Eclipse + Windows 8
  3. android(11)_文件操作读取模式
  4. Android(安卓)Studio创建项目Error:Server returned HTTP respon
  5. android ImageView加载大图解决方案
  6. Android中JNI程序的编写(zhuan)
  7. Android(安卓)sqlit java层源码分析
  8. Ubuntu 17.10 Android(安卓)studio 3.1 下的AVD配置
  9. Android:不同drawable文件夹的区别

随机推荐

  1. Android 多进程总结
  2. [转]Android 中自定义View的应用.
  3. 疯狂android讲义----android事件处理(1)
  4. Android(安卓)app\build\intermediates
  5. Android更改桌面应用程序launcher的两种
  6. Android的APP启动过程分析
  7. andriod环境的配置eclipse
  8. Android拍照、相册选取、裁剪图片综合Dem
  9. Android 鍒囨崲绯荤粺璇█鍔熻兘瀹炵幇
  10. android tab之间滑动切换界面功能