Disclaimer here . I will copy manifest.xmlin .repoand print:
manifest.xml
.repo
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?
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:
local_manifest.xml
<?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.
repo sync
Here is what I did to make this work locally.
I translated manifest.xml to another place, e.g. ~/mymanifest/manifest.xml
~/mymanifest/manifest.xml
git -enabled,
cd ~/mymanifest git init git add manifest.xml git commit -m "My local manifest"
repo -u ~/mymanifest/, , !
repo -u ~/mymanifest/