您的位置:首页 > 健康 > 养生 > manifest仓库中,没有分支A,但是有标签A如何初始化repo

manifest仓库中,没有分支A,但是有标签A如何初始化repo

2024/12/23 11:52:08 来源:https://blog.csdn.net/WXXGoodJob/article/details/139804007  浏览:    关键词:manifest仓库中,没有分支A,但是有标签A如何初始化repo

拉取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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com