Today meet one repo sync issue :
error.GitError: cannot initialize work tree
The Traceback log show :
Traceback (most recent call last):
File
_Main(sys.argv[1:])
File
repo._Run(argv)
File
cmd.Execute(copts, cargs)
File
project.Sync_LocalHalf(syncbuf)
File
self._InitWorkTree()
File
raise GitError("cannot initialize work tree")
Finally below countermeasure can resolve the issue :
repo --trace sync -l
Then continue : repo sync