Creating a default manifest for git-repo

johnlemon picture johnlemon · Jan 15, 2013 · Viewed 12.5k times · Source

I'm trying to use git repo for my own project. I understand I have to create a default.xml file and using to link to all the repositories available but It's not clear how to do that. I tried creating a simple xml file and put in on a server. I also added 2 remote configurations and projects.

From what I read the default.xml file must also be in a repository but this step is not clear.

When I try to use the command repo init -u http:// my_custom_url /manifest/ I get a curl download error.

Any advice or steps I have to take in order to create the default manifest ?

Answer

mvp picture mvp · Jan 15, 2013

Yes, default.xml must be in its own git repository.

Easiest way to understand how repo works is to see how Android project (guys who created it in first place) do it.

You should init Android example of manifest as described here:

repo init -u https://android.googlesource.com/platform/manifest

You can then download Android source tree using repo sync, but it may take a while and 10GB+ of disk space and is not strictly necessary for your investigation, but if you do it, you will understand it better.

Then, take a look at directory .repo - inside you will find manifest git repository checked out.

I would suggest taking this as working example, and then removing everything you don't want or don't need and tweaking to your needs.