share it in linaro-android mailing list, so that others could try it and might have better options.

On 9 June 2015 at 10:45, Vishal Bhoj <vishal.bhoj@linaro.org> wrote:


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 sync

It 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=1
repo sync -jX   -c

This 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" option
here I think it should --depth=0 
and 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 list
linaro-android@lists.linaro.org




--
Best Regards,
Yongqin Liu
---------------------------------------------------------------
#mailing list
linaro-android@lists.linaro.org