zoukankan      html  css  js  c++  java
  • Android repo 出现error.GitError: manifests revlist ('^12303f87b9f90c07bf4aec4c4353ba514ee70c8a', 'HEAD', ''): fatal: bad revision 'HEAD'

    执行的操作

    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*
     
    Leslie Guan
  • 相关阅读:
    SQL 递归查询(根据指定的节点向上获取所有父节点,向下获取所有子节点)
    限流脚本
    使用DANT做FTP的转发代理
    忘记token怎么加入k8s集群
    CentOS7.x使用overlay2文件系统
    文件已删除但句柄没有释放导致磁盘空间用完
    多线程学习(一)什么是多线程?
    自己用过的web软件tools软件以及玩过的游戏
    day1 学习历程
    git合并请求
  • 原文地址:https://www.cnblogs.com/GMCisMarkdownCraftsman/p/3751798.html
Copyright © 2011-2022 走看看