-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to fetch the latest mbed-os without the entire Git history #312
Comments
We do a shallow clone of mbed-os by default, since version 7.3.0. I ran the command to make a new example with verbose logging enabled, so you can see what options it runs with.
It looks like we do: I then ran a
I see your suggested command uses
Only the one commit of mbed-os was fetched, from the branch you've requested. This looks to save about 413 MB on disk (809M for single commit, instead of 1.2G for the entire history). |
mbed-tools do a shallow copy now, but this has also caveats:
maybe mbed deploy can give a hint for this or can check the deploy command it a shallow copy is used?
|
By default,
mbed-tools new .
fetches the entire Git history - that's extra 420MB !Please allow to limit the fetch to the latest version only
git clone https://github.com/ARMmbed/mbed-os --branch latest --single-branch --depth 1
The text was updated successfully, but these errors were encountered: