jsoncpp上发生AOSP回购同步错误,但git clone正常

时间:2018-07-05 06:50:55

标签: git android-source repo

我正在尝试将最新的AOSP(标记为android-p-preview-4)克隆回来。 但是,我总是遇到以下错误:

Fetching project platform/external/jsoncpp
Fetching projects: 100% (637/637), done.
Syncing work tree:  37% (236/637)  error: failed to unpack compressed delta at offset 851713 from .git/objects/pack/pack-755d3172ff230697ac8d1579d8aeb6cc0f9d83ec.pack
fatal: packed object 44ca2e9774208d6ee4f889e7bf007e475976edcb (stored in .git/objects/pack/pack-755d3172ff230697ac8d1579d8aeb6cc0f9d83ec.pack) is corrupt
Traceback (most recent call last):
  File "/hdd2/aosp/.repo/repo/main.py", line 531, in <module>
    _Main(sys.argv[1:])
  File "/hdd2/aosp/.repo/repo/main.py", line 507, in _Main
    result = repo._Run(argv) or 0
  File "/hdd2/aosp/.repo/repo/main.py", line 180, in _Run
    result = cmd.Execute(copts, cargs)
  File "/hdd2/aosp/.repo/repo/subcmds/sync.py", line 821, in Execute
    project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
  File "/hdd2/aosp/.repo/repo/project.py", line 1327, in Sync_LocalHalf
    self._InitWorkTree(force_sync=force_sync)
  File "/hdd2/aosp/.repo/repo/project.py", line 2486, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

我尝试过:

  1. 使用回购同步-j1-不好
  2. 删除 .repo / projects / external / jsoncpp.git并再次同步-不好
  3. git克隆 https://android.googlesource.com/platform/external/jsoncpp.git 在其他地方,克隆可以,将.git文件夹复制回去并使用repo sync --force-sync-仍然不行

有人可以指出这里有什么问题吗?服务器错误吗?但是我成功完成了git clone。

0 个答案:

没有答案