How to “repo init” on a disconnected system?

后端 未结 2 1451
粉色の甜心
粉色の甜心 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:28

    There is an option to ignore the clone bundle.

    repo init -u <your-manifest-mirror-url> --no-clone-bundle
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题