Create Android server local repository for specific tag

女生的网名这么多〃 提交于 2019-12-01 12:42:41

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/20921673/create-android-server-local-repository-for-specific-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!