i like to add the AOSP 4.3 to a gerrit project

妖精的绣舞 提交于 2019-12-11 08:53:07

问题


"i am pretty new to this stuff so kindly bear with me"

i have downloaded AOSP4.2.1 to my ~/Android_setup/AOSP4.2.1 using below steps and was able to compile and build the images.

<< repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.1_r1 repo sync >>

and now want to setup a Gerrit server on my PC, and create a new project with the AOSP code, i was able to setup a local gerrit server in my ~/gerrit_example folder. i was able to create new proejct in gerrit using the UI which has created a folder ~/home/gerrit_example/git/AOSP4.2.1.git.i can see the project from the web interface as http:// localhost:8081 /# /admin/projects/AOSP4.2.1

Now i want to merge/redirect this AOSP4.2.1 code in ~/Android_Setup/AOSP4.2.1 to the gerrit project

Please let me know how to setup


回答1:


The AOSP 4.3 codebase is not one single repository, it is a collection of lots of repositories. See the full list at https://android.googlesource.com/.

Fortunately it is easy to get these set up in your Gerrit server. You don't need to create a project for each one through the web UI, you just need to clone the repositories to your git/ folder. So as your gerrit user, in the ~/home/gerrit_example/git/ folder, run these commands:

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

repo sync

Restart Gerrit, and it will see the new repositories and create projects for them.



来源:https://stackoverflow.com/questions/17922653/i-like-to-add-the-aosp-4-3-to-a-gerrit-project

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