[Buildbot-devel] git: using shallow initial clones
tom fogal
tfogal at alumni.unh.edu
Tue Mar 2 18:38:34 UTC 2010
Hi all, I was asked to bring this issue up on the ML.
I've written a small patch to use "git clone --depth 1" instead of "git
init; git fetch" when doing the initial clone w/ git:
http://github.com/tfogal/buildbot/commit/13e0ee8936dc2f04be75c2c69b9e4446ea88c784
(and attached).
The idea was that a shallow clone would be a lot cheaper. I've got a
~10gb git repo locally though, and I've found git spends something like
45 minutes figuring out the initial clone on the server side. This
appears to be irrelevant of the two methods, much to my chagrin.
That said, a shallow clone should reduce network bandwidth. I'm told
the API here has changed very recently, but I'd be willing to rebase
against git master if people here thought the approach was worthwhile.
Cheers,
-tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-diff
Size: 1787 bytes
Desc: 0001-Git-be-shallow-on-an-initial-clone.patch
URL: <http://buildbot.net/pipermail/devel/attachments/20100302/05d16546/attachment.bin>
More information about the devel
mailing list