How to "restart init" on a disconnected system?
I mirrored the repository with
repo init -u <uri of manifest> --mirror repo sync and copied it (via usb) to a system disconnected from the Internet, along with a repo script and repo repository repository repository from https://gerrit.googlesource.com/git-repo/clone.bundle .
Now I want to create a new client from the mirror, but when I ran the command.
repo init -u <uri of manifest on mirror> I get the following error.
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno -2] Name or service not known So I have clone.bundle, but I have no way to convince the repo to use it.
Any suggestions?
There is an option that seems to be completely undocumented on the Internet for repos. This is a repo url that allows you to reevaluate where the repo is looking for the latest version.
This is what I did:
I had a package saved in my house as git -repo-clone.bundle
repo init -u < uri of manifest on mirror > --repo-url ~/git-repo-clone.bundle I found this by reading the repo script myself and thought I wanted to share.
It seems that the repo tool that was installed on your system comes from the git-repo repository from the Google Gerrit project. This problem can be easily solved by doing something similar to OwainD's answer, but only using a mirror, without requiring another repo.
repo init -u <mirror uri>/platform/manifest.git --repo-url <mirror uri>/tools/repo.git This also solved the problem and did not allow me to grab another repository and transfer it to an unconnected machine.