Re: git push sends more objects than it needs to
From: "Luck, Tony" <tony.luck@intel.com>
Date: 2016-06-15 22:42:10
On Mon, Oct 31, 2005 at 11:36:09AM -0800, Linus Torvalds wrote:
a) The "don't do that then" approach:
Don't go behind git's back and add objects on your own, and expect git
to realize what you did. ;^pTo be a responsible kernel.org git user I need to use packfiles. The cheapest and easiest way to do that is to steal them from you.
b) The "live with it" approach:
You copied the pack by hand, and that will keep git-unpack-objects
from duplicating the objects, but you'll still waste time and network
when trying pushing the objects (just once, though).
Ie this is what happened this time: nothing really lost, and the end
result is fine. Now you know why it happened, and you're fine.I like this one best. There's a pretty fat pipe between here and kernel.org ... more of the time wasted appeared to be on the unpacking part than on the transfer.
d) Just let git do it for you.
Copy the pack-files, or add my object directory as an "alternates" for
your object directory, do the "git prune-objects", and then _locally_
on master.kernel.org just do something likeLonger term (when everyone is pulling using the "git" protocol) adding your object directory to my info/alternates looks to be the best thing. -Tony