Try the following steps to clone your private AOSP mirror.
repo sync -j4
Add --mirror to keep all git structure from remote
platform/manifest only contains repository current version use, platform/manifest contains all repositories used in the past release.
New repositories will be added when Android upgrades its version,
you must add new repositories manually if you want upgrade your Android in the future.
2. Create a parent project "mirror-project-permission-base" as the permission base of all your android
2. repo forall -c 'ssh -p PORT ACCOUNT@SERVER gerrit create-project PROJECT_ROOT/$REPO_PROJECT;'
repo forall -c 'ssh -p PORT ACCOUNT@SERVER gerrit set-project-parent --parent mirror-project-permission-base PROJECT_ROOT/$REPO_PROJECT'
repo forall -c 'git push ssh://ACCOUNT@SERVER:PORT/PROJECT_ROOT/$REPO_PROJECT 'refs/heads/*' 'refs/tags/*' 'refs/notes/*''
This is use repo to create projects by your local project names on server, set their parent permission, and push local content to remote.
3. Create your own manifest project.
Trung Chính Mai於 2014年12月31日星期三UTC+8上午12時50分05秒寫道: