Question

I would like to create a local server for Android branch android-4.3_r1.1 I follow this thread: Cloning Android sources to a local repository server

But I couldn't do the same thing for specific tag, How can it be done ?

I would like to have a server, and then from the client do some work and push it to the server, so other client can do a sync and see my commits ...

On the server side this is what I did: repo init -u https://android.googlesource.com/platform/manifest --mirror repo sync

On the client side: repo init -u git-server/android/platform/manifest.git/ -b android-4.3_r1.1 repo sync

I get many of some kind of these errors: fatal: 'git-server/android/device/ti/panda' does not appear to be a git repository fatal: The remote end hung up unexpectedly

And all the process is failed ... (error: Exited sync due to fetch errors)

I would like a client AOSP working on android-4.3_r1.1 then do some changes and commit them to the git server.

Was it helpful?

Solution

The repo init --mirror -u $URL/platform/manifest method is sane, but you'll only sync the gits listed in the manifest in question (the master branch, in this example). So, while all gits that are synced will contain all branches and tags needed, the manifest itself doesn't include all gits so subsequent attempts to initialize workspaces based on the created mirror will fail if the manifest branch you've chosen to sync points to gits not included in the master branch's manifest.

The AOSP team has set up special manifest, mirror/manifest, that isn't useful for building anything but lists all gits from all branches and therefore is highly useful for mirroring. In other words, initialize your mirror like this:

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

See the AOSP Downloading the Source documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top