我喜欢将AOSP 4.3添加到gerrit项目中 [英] i like to add the AOSP 4.3 to a gerrit project

查看:144
本文介绍了我喜欢将AOSP 4.3添加到gerrit项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用下面的步骤将AOSP4.2.1下载到了我的〜/ Android_setup / AOSP4.2.1中并且能够编译和构建图像。

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

现在想在我的电脑上安装一个Gerrit服务器,并用AOSP代码创建一个新项目,我是能够在〜/ gerrit_example文件夹中设置本地gerrit服务器。我能够使用已创建文件夹的用户界面创建gerrit中的新项目〜/ home / gerrit_example / git / AOSP4.2.1.git.i可以从Web界面将项目视为
http:// localhost :8081 /#/admin/projects/AOSP4.2.1



现在我想将〜/ Android_Setup / AOSP4.2.1中的这个AOSP4.2.1代码合并/重定向到gerrit项目

请让我知道如何设置

解决方案

AOSP 4.3代码库不是一个单一的存储库,它是许多存储库的集合。在 https://android.googlesource.com/ 查看完整列表。



幸运的是,您可以很容易地在Gerrit服务器中设置这些设置。您不需要通过Web UI为每个项目创建一个项目,只需要将存储库克隆到 git / 文件夹。因此,作为您的gerrit用户,请在〜/ home / gerrit_example / git / 文件夹中运行以下命令:

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



repo sync



重新启动Gerrit,它会看到新的存储库并为它们创建项目。 $ b

"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

解决方案

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.

这篇关于我喜欢将AOSP 4.3添加到gerrit项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆