标题: repo error [打印本页] 作者: js_wawayu 时间: 2021-9-1 10:19 标题: repo error .repo/repo/repo sync -c --no-tags
error:
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.
作者: js_wawayu 时间: 2021-9-1 10:52
error: Cannot fetch poky (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.) 作者: js_wawayu 时间: 2021-9-1 10:55
sdk代码同步报错,麻烦解决一下,谢谢作者: js_wawayu 时间: 2021-9-1 14:15
Fetching project app/demo
Fetching project distro
Fetching project app/QLauncher
Fetching project external/rkmedia
Fetching project yocto/meta-openembedded
Fetching project app/qsetting
Fetching project docs-soc_internal
Fetching project yocto/meta-rockchip
Fetching project yocto/meta-browser
Fetching project prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
Fetching project external/softapDemo
Fetching project external/uvc_appFetching project external/rkscript
Fetching project u-boot
Username for 'https://gitlab.com': 作者: js_wawayu 时间: 2021-9-1 14:28
error: Cannot fetch poky (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.)
Fetching project external/rkwifibt
Fetching projects: 24% (20/81) Exception in thread Thread-23:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
self._InitGitDir(force_sync=force_sync)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2267, in _InitGitDir
raise e
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.
repo sync -l执行成功。
执行repo sync -c --no-tags过程中报错,如下:
error: Cannot fetch poky (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.)
Fetching project external/rkwifibt
Fetching projects: 24% (20/81) Exception in thread Thread-23:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
self._InitGitDir(force_sync=force_sync)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2267, in _InitGitDir
raise e
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.