How to "repo init" on a disconnected system?

There is an option, that appears to be totaly undocumented on the internet for repo. It is --repo-url which allows you to overide where repo looks for the latest version of itself.

This is what I did:

I had the bundle saved in my home as git-repo-clone.bundle

repo init -u < uri of manifest on mirror > --repo-url ~/git-repo-clone.bundle

I found this out by reading the repo script itself, and thought I would share.


There is an option to ignore the clone bundle.

repo init -u <your-manifest-mirror-url> --no-clone-bundle

Tags:

Repository