创建特定的标签Android的服务器本地存储库标签、服务器、Android

2023-09-07 01:27:49 作者:闪闪发光的小逗比

我想创建一个本地服务器为Android分支的Andr​​oid 4.3_r1.1 我按照这个线程: Cloning Android的源到一个本地资源库服务器

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 ...

在服务器端,这是我做的事: 回购的init -u https://android.googlesource.com/platform/manifest --mirror 回购同步

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

在客户端: 回购的init -u git的服务器/安卓/平台/ manifest.git / -b Android的4.3_r1.1 回购同步

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

我得到很多的一些这些错误的: 致命的:混帐服务器/安卓/设备/ TI /熊猫不会出现是一个Git仓库 致命的:远程端挂了意外

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)

我想在客户端AOSP致力于Android的4.3_r1.1然后做一些修改,并将其提交到git的服务器。

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

推荐答案

回购初始化--mirror -u $网址/平台/清单的方法是健全的,但你仅会在同步有问题的清单中列出的控释片(主分支,在这个例子中)。因此,而的所有控释片是的同步将包含所有分支和标签需要,清单本身并不包括所有控释因此后续尝试初始化的基础上创建的镜像工作区会失败,如果清单分支您'已经选择要同步点,不包括在主分支的清单控释片。

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.

在AOSP团队已经设立了专门的清单,镜面/清单,不是建立什么,但列出了所有控释片的所有分支有用的,因此对于镜像非常有用。换句话说,初始化你的镜子是这样的:

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

见AOSP 下载源文档。