①repo --trace sync -cdf将repo的所有动作详细输出: repo --tracesync-cdf : unpickle /home/lenovosh/Qualcomm/SourceCode/mirror/SDM845_r00110.1/Android/.repo/manifests.git/config : unpickle /home/lenovosh/.gitconfig : unp
当repo sync中断或者冲突的时候可能出现 error: cannot initialize work tree 的报错 处理方法:执行 repo sync -cdf 输出sync的详细信息 等待报错出现 找到报错的仓库路径——packages/apps/DocumentsUI 然后分别删除根目录下的 packages/apps/DocumentsUI 文件夹, .repo/projects/packages/apps/DocumentsU...
error.GitError: cannot initialize work tree 2. 问题分析 2.1 查看哪里出了问题 从log来看,.repo/repo/project.py是要关注的地方,可以定位到脚本: raise GitError("cannot initialize work tree") 其所在的函数为_InitWorkTree _InitWorkTree完整的代码如下: def _InitWorkTree(self, force_sync=False): dotgit...
self._InitWorkTree(force_sync=force_sync) File "/home/panos/android/cm13/.repo/repo/project.py", line 2393, in _InitWorkTree raise GitError("cannot initialize work tree") error.GitError: cannot initialize work tree 2 因此,将vendor/mediatek/proprietary/hardware/gsm0710muxd这个文件夹删除,在man...
在根据Harmony官网文档学习的,获取源码的过程中,通过repo+https下载OpenHarmony主干代码的时候,执行"repo sync -c"下载代码到本地报错。报错情况是下载了一段时间以后,提示报错:error.GitError: Cannot initialize work tree for applications hap。 原因 本次问题的原因是笔者没有下载**‘git-lfs’**工具,虽然官网有...
line 1327, in Sync_LocalHalf self._InitWorkTree(force_sync=force_sync) File "/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2486, in _InitWorkTree raise GitError("cannot initialize work tree") error.GitError: cannot initialize work tree ...
51CTO博客已为您找到关于repo sync.命令的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及repo sync.命令问答内容。更多repo sync.命令相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
--worktree 参数要加,不加的话会出现error.GitError: Cannot initialize work tree for manifests错误 最终使用成功init了,sync等操作也正常。 URL设置 手动 通过环境变量修改repo仓库地址和分支: REPO_URL = 'https://xxx.xxx.net/android-common-utils/git-repo.git' ...
error.GitError: Cannot checkout poky: Cannot initialize work tree for pokyerror: Cannot checkout pokyerror: Unable to fully sync the tree.error: Downloading network changes failed.error: Checking out local projects failed.Failing repos:sources/meta-python2sources/pokyTry re-running with "-j1 ...
self._InitWorkTree(force_sync=force_sync, submodules=submodules) File "/home/plobacz/rk3399/.repo/repo/project.py", line 3135, in _InitWorkTree raise GitError('Cannot initialize work tree for ' + self.name) error.GitError: Cannot initialize work tree for kernel plobacz@DESKTOP-GH8CSL...