Cyanogenmod / LineageOS repo同步错误

时间:2017-01-09 16:19:12

标签: git synchronization cyanogenmod repo

我同步了整个LineageOS cm-14.1分支,但最后它会抛出此错误。

error: unable to create file frontend/client/src/autotest/public/Open+Sans:300.woff (Invalid argument)
error: unable to create file frontend/client/src/autotest/public/Roboto+Bold:700.woff (Invalid argument)
error: unable to create file frontend/client/src/autotest/public/Roboto+Light:300.woff (Invalid argument)
error: unable to create file frontend/client/src/autotest/public/Roboto+Medium:500.woff (Invalid argument)
error: unable to create file frontend/client/src/autotest/public/Roboto+Regular:400.woff (Invalid argument)
error: unable to create file server/site_tests/display_EdidStress/test_data/edids/weekly/SCT_272_STEELCASE_m:s_HDMI.txt (Invalid argument)
Checking out files: 100% (8423/8423), done.
Traceback (most recent call last):
  File "/mnt/r/Ubuntu/LineageOS/.repo/repo/main.py", line 531, in <module>
    _Main(sys.argv[1:])
  File "/mnt/r/Ubuntu/LineageOS/.repo/repo/main.py", line 507, in _Main
    result = repo._Run(argv) or 0
  File "/mnt/r/Ubuntu/LineageOS/.repo/repo/main.py", line 180, in _Run
    result = cmd.Execute(copts, cargs)
  File "/mnt/r/Ubuntu/LineageOS/.repo/repo/subcmds/sync.py", line 821, in Execute
    project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
  File "/mnt/r/Ubuntu/LineageOS/.repo/repo/project.py", line 1327, in Sync_LocalHalf
    self._InitWorkTree(force_sync=force_sync)
  File "/mnt/r/Ubuntu/LineageOS/.repo/repo/project.py", line 2486, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

我已经尝试删除.repo文件夹中的extrernal / autotest文件夹以强制它重新同步,我还重新加载了repo。

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

目前不支持在WSL中创建包含保留字符的文件。 有关详细信息,请参阅https://github.com/Microsoft/BashOnWindows/issues/1514

顺便说一句,你没有提到你正在使用WSL,这会让你的问题变得混乱。