我用镜像存储了一个存储库
repo init -u <uri of manifest> --mirror
repo sync
Run Code Online (Sandbox Code Playgroud)
并将其(通过usb)复制到与Internet断开连接的系统以及来自https://gerrit.googlesource.com/git-repo/clone.bundle的repo脚本和repo clone bundle存储库.
我现在想从镜像创建新客户端,但是当我运行命令时.
repo init -u <uri of manifest on mirror>
Run Code Online (Sandbox Code Playgroud)
我收到以下错误.
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno -2] Name or service not known
Run Code Online (Sandbox Code Playgroud)
所以我有clone.bundle但无法说服repo使用它.
有什么建议?
Owa*_*inD 23
有一个选项,似乎在互联网上完全没有记录回购.它是--repo-url,允许你覆盖repo寻找最新版本的地方.
这就是我做的:
我把这个捆绑保存在我家里作为git-repo-clone.bundle
repo init -u < uri of manifest on mirror > --repo-url ~/git-repo-clone.bundle
Run Code Online (Sandbox Code Playgroud)
我通过阅读repo脚本本身发现了这一点,并认为我会分享.