Repo using local manifest not working

Disclaimer here . I will copy manifest.xmlin .repoand print:

repo init -m ./.repo/manifest.xml

And this does not work:

jack $ repo init -m ./.repo/manifest.xml 
fatal: manifest url (-u) is required.

I provide manifest.xml. What's wrong?

+5
source share
2 answers

I have never used this method. What I do in this situation is to create a file with a name local_manifest.xmlin the directory .repothat contains information about projects that will deviate from the branch that I already synchronized. For instance:

 <?xml version="1.0" encoding="UTF-8"?>
 <manifest>
   <remove-project name="platform/bionic"/>
   <project path="bionic"
        name="platform/bionic"
        revision="my-awesome-feature-branch"/>
 </manifest>

After adding this file, I'm simple again repo sync.

+3
source

Here is what I did to make this work locally.

I translated manifest.xml to another place, e.g. ~/mymanifest/manifest.xml

git -enabled,

cd ~/mymanifest
git init
git add manifest.xml
git commit -m "My local manifest"

repo -u ~/mymanifest/, , !

+3

All Articles