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

The first run of patch.sh (3.8 branch) takes a very long time #22

Open
bradfa opened this issue Jan 31, 2013 · 2 comments
Open

The first run of patch.sh (3.8 branch) takes a very long time #22

bradfa opened this issue Jan 31, 2013 · 2 comments

Comments

@bradfa
Copy link

bradfa commented Jan 31, 2013

The first time you run patch.sh it clones Linus' entire tree, which on a slow connection, takes forever. Could a --depth 1 clone just of the tag of interest get the same state that's needed? This would require that the tag of interest never goes backwards, which could be inconvenient.

@RobertCNelson
Copy link
Member

If you have an existing tree, you can always pre-populate the kernel directory it with:

git clone --reference /folder/of/previous/git/clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git kernel

I use to do that all the time, back when my connection was very slow..

Just don't use a reference, that was previous cloned as refernce to, you'll eventually lose objects on git cleanup's..

Regards,

@bradfa
Copy link
Author

bradfa commented Jan 31, 2013

@RobertCNelson Yes, but I'm thinking more of people who own Bones and want to try out the scripts. Many of these people can follow exact steps but will get frustrated waiting for a 500+ MB git clone to take place, they also are unlikely to have a full git kernel tree laying around :). If the default first run was a reasonable length due to a shallow clone, that would be helpful. I'm working on a patch but hit some issues last night with it. If I get it working I'll post a pull request.

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

2 participants