Add repo init option "--mirror".
$ mkdir -p
$ cd
$ repo init -u https://android.googlesource.com/mirror/manifest --mirror
$ repo sync
Download time : about 4 hours and over.
volume : 10GB over
Get source from a local mirror
when get source from a local mirror, change repo init url with locla path.$ mkdir -p android-4.0.3_r1
$ cd android-4.0.3_r1
$ repo init -u
$ repo sync
I try to get android-4.0.3_r1 branch.
$ repo init -u ../aosp_mirror/platform/manifest.git/ -b android-4.0.3_r1
real 3m18.429s
user 8m21.260s
sys 0m54.990s
when get ICS soruce, time is 3m18s !!
(using SSD, not HDD!)
You can find more tips on repo sync here http://improved-life.in/2015/12/27/repo-sync-tips-to-download-remote-repository-faster/
ReplyDelete