正在加载
请稍等

菜单

红楼飞雪 梦

15526773247

文章

Home android 嵌入式开发 android源代码同步问题
Home android 嵌入式开发 android源代码同步问题

android源代码同步问题

android 嵌入式开发 by

今天同步android源代码的时候碰到如下问题:

Syncing work tree:  95% (433/455)  error: inflate: data stream error (incorrect data check)
error: failed to read object c5c906d9ed7b7fcff75ef2d0ddf5924097ad483d at offset 46033307 from .git/objects/pack/pack-ac4e29d6888f41a237c88d6be69c5accf1065a40.pack
fatal: packed object c5c906d9ed7b7fcff75ef2d0ddf5924097ad483d (stored in .git/objects/pack/pack-ac4e29d6888f41a237c88d6be69c5accf1065a40.pack) is corrupt
Traceback (most recent call last):
  File "/home/android/android-source-code/.repo/repo/main.py", line 531, in <module>
    _Main(sys.argv[1:])
  File "/home/android/android-source-code/.repo/repo/main.py", line 507, in _Main
    result = repo._Run(argv) or 0
  File "/home/android/android-source-code/.repo/repo/main.py", line 180, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/android/android-source-code/.repo/repo/subcmds/sync.py", line 762, in Execute
    project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
  File "/home/android/android-source-code/.repo/repo/project.py", line 1246, in Sync_LocalHalf
    self._InitWorkTree(force_sync=force_sync)
  File "/home/android/android-source-code/.repo/repo/project.py", line 2387, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

解决方案如下(必须保证磁盘空间充足):

repo sync -j1

如果还报错就:

repo sync

 

 

13 2015-12

 

我要 分享

 

 

本文 作者

 

相关 文章