On 9 June 2015 at 06:46, YongQin Liu <yongqin.liu@linaro.org> wrote:Thanks Vishal, this mail is really in time!On 8 June 2015 at 14:23, Vishal Bhoj <vishal.bhoj@linaro.org> wrote:Hi,Most of you might already be knowing this. If you already have a version of source say AOSP in a folder "mydroid" and you want to repo sync code base from a vendor, you can do this:repo init -u $MANIFEST_URL --reference=<path/mydroid>repo syncIt will reuse the previous git objects and only download and store the new git objects. This way a lot of space is saved.Another way to get code downloaded faster is:
repo init -u $MANIFEST_URL --depth=1repo sync -jX -cThis way it will only download the relevant branch with only last git commit history of the project. Once this is done, you can do a repo init with "--depth" optionhere I think it should --depth=0and then repo sync -c for the relevant project you are interested in to have the complete history of that branch. The size of .repo folder was reduced to 6 GB from the original 16GB size.And we can use the group option, with "-darwin,-mips,-x86" will not download the toolchain binary for x86/mips, it will save us some space too.+1. -notdefault can be included as well.--Best Regards,Yongqin Liu---------------------------------------------------------------#mailing listlinaro-android@lists.linaro.org