Skip to content
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

Second update clones entire firmware history #56

Closed
fastcat opened this issue Jan 7, 2013 · 3 comments
Closed

Second update clones entire firmware history #56

fastcat opened this issue Jan 7, 2013 · 3 comments

Comments

@fastcat
Copy link
Contributor

fastcat commented Jan 7, 2013

The first run of rpi-update does a git shallow clone, which is nice & appropriate.

However, the second run does a "normal" fetch, which pulls in the entire history, which is hundreds of MB and takes quite a long time, both for github to prepare and to transmit across the network.

Using git fetch --depth=1 pulls in more than would be downloaded if a fresh shallow clone was done, but vastly less than a full fetch does.

Given that even a shallow fetch downloads about double what a fresh shallow clone does (for only a handful or commits needing to be fetched), it seems like always doing a fresh shallow clone would be more efficient.

@popcornmix
Copy link
Collaborator

Interesting.

@Hexxeh
Copy link
Owner

Hexxeh commented Jan 7, 2013

This would explain why things have become painfully slow!

@popcornmix
Copy link
Collaborator

I've tried the git fetch --depth=1 and it works for me, so I've pushed it.
@Churten thanks for bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants