我已经镜像了一个存储库
repo init -u <uri of manifest> --mirror
repo sync
并将其(通过 USB)连同 repo 脚本和 repo 克隆包存储库复制到与互联网断开连接的系统https://gerrit.googlesource.com/git-repo/clone.bundle https://gerrit.googlesource.com/git-repo/clone.bundle.
我现在想从镜像创建新客户端,但是当我运行命令时。
repo init -u <uri of manifest on mirror>
我收到以下错误。
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno -2] Name or service not known
所以我有clone.bundle,但无法说服repo使用它。
有什么建议么?
有一个选项,似乎在互联网上完全没有记录用于回购。 --repo-url 允许您覆盖 repo 查找其自身最新版本的情况。
这就是我所做的:
我将该捆绑包保存在我的家里,名称为 git-repo-clone.bundle
repo init -u < uri of manifest on mirror > --repo-url ~/git-repo-clone.bundle
我通过阅读回购脚本本身发现了这一点,并认为我会分享。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)