On Apr 29, 9:36 pm, johnny <
johnny...@gmail.com> wrote:
> Hi Shawn,
>
> I am using repo mirror to create a mirror server of AOSP. When I
> specify a manifest repository, I also need to specify a branch.
> Different branch of the manifest file may include different set of
> projects. If I want to sync both the master and cupcake branch, I need
> type: repo init -b cupcake && repo sync and then repo init -b master
> && repo sync. Is that correct?
Not exactly. Just a repo sync will update all the projects in the
manifest, which will download the changes for all branches in each
project. You only need to switch the manifest branch if it lists
different projects from one branch to the other. It might make sense
to use 2 sandboxes in this case.
>
> I just completed a repo sync. But suddenly I was aware that I didn't
> know which branch I just synced. So is there a way to know which
> branch of manifest I am working on?
You should be able to see which branch your manifest is on by:
$ cd .repo/manifests/
$ git-remote show origin
And look for which branch a 'git pull' will merge with. If that
doesn't work, just cat .git/config and see what default is tracking.
I'm sure Shawn knows a better way to do this...
>
> Thanks,
> Johnny Xia.