Skip to content

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

Description

@bradfa

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.

Activity

  1. RobertCNelson commented on Jan 31, 2013

    @RobertCNelson
    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,

  2. bradfa commented on Jan 31, 2013

    @bradfa
    Author

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions