How to “repo init” on a disconnected system?

后端 未结 2 1448
粉色の甜心
粉色の甜心 2021-02-05 15:55

I have mirrored a repository with

repo init -u  --mirror
repo sync

and copied it (by usb) to a system disconnected from

2条回答
  •  执笔经年
    2021-02-05 16:43

    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.

提交回复
热议问题