Git error: unable to initialize work tree

I am trying to download special AOSP code for Android TV from my repo. I run repo init

repo sync -fc -j8 

as usual, but after extracting all the material, I always get the following error message.

.
.
Fetching projects:  98% (431/439)  Fetching project platform/vendor/widevine
Fetching projects: 100% (439/439), done.  
Syncing work tree:  97% (426/439)  error: unable to read sha1 file of x86_64/vmlinux-qemu (11819c0a8aefd3cb8d0e87884ff44abda7bba2ad)
Traceback (most recent call last):
File "/home/mehmet/l_mrl-tv-dev-avko/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/home/mehmet/l_mrl-tv-dev-avko/.repo/repo/main.py", line 507, in _Main
    result = repo._Run(argv) or 0
File "/home/mehmet/l_mrl-tv-dev-avko/.repo/repo/main.py", line 180, in _Run
    result = cmd.Execute(copts, cargs)
File "/home/mehmet/l_mrl-tv-dev-avko/.repo/repo/subcmds/sync.py", line 762, in Execute
    project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/home/mehmet/l_mrl-tv-dev-avko/.repo/repo/project.py", line 1246, in Sync_LocalHalf
    self._InitWorkTree(force_sync=force_sync)
File "/home/mehmet/l_mrl-tv-dev-avko/.repo/repo/project.py", line 2387, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

It downloads about 30 GB of data, and I tried a lot of things,

I updated the git version, deleted the ~ / l_mrl-tv-dev-avko / .repo / repo directory and the vmlinux-qemu file, etc. Then he again checked, but nothing changed.

What could be the solution? Relations

+4
source share

Source: https://habr.com/ru/post/1611897/


All Articles