|
Posted at 9/19/2023 09:10:13
Only Author
3#
Last edited by prateekarora In 9/19/2023 09:25 Editor
command "git reset --hard "fails with the error "not a git repo".
I tried the command ".repo/repo/repo forall -vc "git reset --hard" which worked but now I have a lot more similar errors like "no target for driver/gpu"
Since the above efforts failed, I tried cloning the repo from scratch and I am listing the process I followed below:
- cd ~/proj/rk3588_sdk/
- ## Full SDK
- repo init --no-clone-bundle --repo-url https://gitlab.com/firefly-linux/git-repo.git -u https://gitlab.com/firefly-linux/manifests.git -b master -m rk3588_linux_release.xml
Copy the code
after the ".repo/repo/repo sync -c --no-tags" command, I get the following error:
From https://gitlab.com/firefly-linux/kernel
* [new tag] rk3588/linux_release_v1.1.1c -> rk3588/linux_release_v1.1.1c
Fetching projects: 100% (47/47), done.
info: A new version of repo is available
warning: project 'repo' branch 'stable' is not signed
warning: Skipped upgrade to unverified version
Checking out files: 100% (1498/1498), done.t files: 92% (1389/1498)
Checking out files: 100% (413/413), done.out files: 15% (63/413)
Checking out files: 100% (275/275), done. out files: 68% (188/275)
Checking out files: 100% (2910/2910), done.ut files: 78% (2275/2910)
error: inflate: data stream error (incorrect data check)% (57/160)
error: failed to read delta base object b9d16e8fbf9963aeb2901ab15b7883acd72516fe at offset 1719907657 from .git/objects/pack/pack-87611d5ff858197ce0612e7517a072b30fa0078e.pack
fatal: packed object b46bbf8edc08373fda0ebe8bad71ebe5157d17b7 (stored in .git/objects/pack/pack-87611d5ff858197ce0612e7517a072b30fa0078e.pack) is corrupt
Traceback (most recent call last):
File "/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/subcmds/sync.py", line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/project.py", line 1327, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync)
File "/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/project.py", line 2486, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
prateek_arora@d00b65e3eb74:/home/rwl/gits/fir
How do I fix the corrupt error?
|
|