拉取OpenHarmony源码,出错:
$ ./repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-v4.0.1-Release --no-repo-verify
Downloading Repo source from https://gitee.com/oschina/repo.git
remote: Enumerating objects: 9008, done.
remote: Total 9008 (delta 0), reused 0 (delta 0), pack-reused 9008
repo: warning: verification of repo code has been disabled;
repo will not be able to verify the integrity of itself.Downloading manifest from git@gitee.com:openharmony/manifest.git
fatal: couldn't find remote ref refs/heads/OpenHarmony-v4.0.1-Release
fatal: the remote end hung up unexpectedly
[session-45433fb2] Grpc Upload Pack error: rpc error: code = Internal desc = cmd wait: exit status 128, stderr: "fatal: the remote end hung up unexpectedly\n"
manifests:
fatal: couldn't find remote ref refs/heads/OpenHarmony-v4.0.1-Release
fatal: the remote end hung up unexpectedly
[session-45433fb2] Grpc Upload Pack error: rpc error: code = Internal desc = cmd wait: exit status 128, stderr: "fatal: the remote end hung up unexpectedly\n
原因是远程manifest参考中没有OpenHarmony-v4.0.1-Release分支,通过排查,发现他有OpenHarmony-v4.0.1-Release标签,所以,在前面添加“refs/tags/”引用对应标签来初始化repo
./repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v4.0.1-Release --no-repo-verify