备忘一下
error.GitError: cannot initialize work tree
.repo/repo/repo --trace sync -cdf
juwan@juwan-n85-dls:/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301$ .repo/repo/repo sync -l
error: unable to create file openssl-1.0.2a-parallel-install-dirs.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 无效的参数
error: unable to create file openssl-1.0.2a-parallel-obj-headers.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 无效的参数
error: unable to create file openssl-1.0.2a-parallel-symlinking.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 无效的参数
error: unable to create file openssl-1.0.2d-parallel-build.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 无效的参数
正在更新文件: 100% (325/325), 完成.
Traceback (most recent call last):
File "/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", 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
contains uncommitted changes
.repo/repo/repo forall -c "git reset --hard && git clean -fd && git pull"
juwan@juwan-n85-dls:/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301$ .repo/repo/repo --trace sync -cdf
: parsing /media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/manifests.git/config
: parsing /home/juwan/.gitconfig
: parsing /media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/repo/.git/config
: export GIT_DIR=/media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/manifests.git
: git fetch --progress origin --tags +refs/heads/master:refs/remotes/origin/master 1>| 2>|
remote: Enumerating objects: 2077, done.
remote: Counting objects: 100% (2073/2073), done.
remote: Compressing objects: 100% (895/895), done.
remote: Total 2077 (delta 1275), reused 1816 (delta 1106), pack-reused 4
接收对象中: 100% (2077/2077), 473.75 KiB | 2.89 MiB/s, 完成.
处理 delta 中: 100% (1275/1275), 完成 1 个本地对象.
来自 https://gitlab.com/firefly-linux/manifests
97c2db2..231e565 master -> origin/master
: load refs /media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/manifests.git
: scan refs /media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/manifests.git
: cd /media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/manifests
: git rev-list ^HEAD 231e5652add14090ea143509a3b8562b2c65d526 -- 1>| 2>|
: scan refs /media/juwan/70970A1D041A95C2/rk3399_linux_release_v2.5.1_20210301/.repo/manifests.git
: git rev-list ^HEAD 231e5652add14090ea143509a3b8562b2c65d526 -- 1>| 2>|
: git log --pretty=format:%H %ce ^231e5652add14090ea143509a3b8562b2c65d526 HEAD -- 1>| 2>|
: git update-index -q --unmerged --ignore-missing --refresh 1>| 2>|
: git diff-index -z -M --cached HEAD 1>| 2>|
: git diff-files -z 1>| 2>|
error: .repo/manifests/: contains uncommitted changes
标签:juwan,contains,work,tree,repo,git,rk3399,linux,release
From: https://www.cnblogs.com/juwan/p/16833349.html