Repo sync project very slow
rancidfrog opened this issue · 3 comments
rancidfrog commented
Following readme instructions:
Repo sync all code with default.xml
repo init -u git://github.com/OnePlusOSS/android.git -b oneplus/QC8998_N_7.1 repo sync
repo sync is very slow compared to all other projects, i.e. aosp/custom roms, etc.
Also, it is sycing many tags that are not needed.
Is there a way to sync only neeeded tags/branches?
randomhydrosol commented
Add --depth=1 to the end of the repo init command
rancidfrog commented
Thank you,
after re-initing repo with --depth=1 and doing forall git clean and prune, now syncing is much quicker.
randomhydrosol commented
You can also use --no-tags and --no-clone-bundle though I'm not really sure how these work