Hi,
I am looking for setting up a local AOSP repo using the base version provided by 3rd Party and I am new to this repo world :-)
I did some research and came up with few queries for expert advice. Please help.
This is what I want to achieve:
1. I wanted this repo to act as a base version for all the development work on a local Git Server.
2. Even I was thinking to have Gerrit installed for this code base. So, that all review process stays on my site. [Not sure if this is achievable though]
3. At the same time, I will need the code updates from 3rd Party at regular intervals and also, I will be required to push my development changes to the 3rd Party.
I found that there is --mirror option of repo command.
I am trying to understand if that will help to achieve the above goals.
I have following queries:
1. In case of setting up repo mirror from AOSP googlesource, i see that mirror manifest is used for syncing.
Does it mean, 3rd Party has to take care of creating this mirror manifest ? or can i use platform/manifest to trigger repo init with mirror option ?
2. Mirror option gets the revision history and can help to sync to 3rd Party code regularly.
Can this even help me to push code to the 3rd Party as well? But in this case, I cant have Gerrit in the local Git server right ?
Does it mean, all code to be pushed to 3rd Party and I shall be using Gerrit on 3rd Party server for review process.
3. If it was just a single git repository, i found that git fetch from one repo repository(3rd Party) and git push to other repository(Local Git Server) by switching the git remote .
Since, AOSP is having multiple git branches, i think shall find a solution using repo command. Otherwise, using git fetch/push for each git project will be tedious.
4. How about removing all the .git from the code I get from 3rd Party recursively in the code i sync from 3rd Party and trigger git init.
This shall be OK to develop locally, but when i want to push the changes to 3rd Party Git server, this approach will fail ?
Please bear with my ignorance if I assumed so many things in my queries.
Kindly suggest your opinion.
Thanks & Regards
Gani