I have a git repo with different sdk versions in a .zip
format in a separate commits. That practically means that there is a whole files in git history and when you clone the repo you will get everything because diff
between binary files are the whole files.
The problem is that after just a few commits, the size of the repo will be very big (1 commit aprox. 500Mb).
I am using Yocto project and SRC_URI
is cloning the whole repo with history and that is where the things start to go down, since it download a lot of unnecessary data and that is time and storage consuming.
Is there any way to get only one (the last) commit downloaded in fetch task with SRC_URI
without history (shallow clone)? Or maybe to change do_fetch task somehow?
This is something I want to achieve in Yocto:
git clone --depth repo_url