Re: Users of git-check-files?
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:03
Josef Weidendorfer [off-list ref] writes:
~/tmp/git/clone2> cg-push 'refs/heads/branch2': updating from 80e4d426dd4c865b943cc1121b580a946eee921d to 8196067677e3415ce404ea5bc35731ac7d56115d fatal: bad object f7e944b036fd00af656b262140c1dc93ceffadb1 Packing 0 objects Unpacking 0 objects
Ahhhh. Yes, we read from the remote and use old->sha1 when doing the pack generation. If we do not have that object (in Josef's example because it is not something we have pulled yet), then rev-list has no way to create the necessary pack. I have a feeling this explains what I've been seeing as well. The first thing I do before I push is to fetch (but not merge-pull) from kernel.org, but this happens against www.kernel.org (to make sure people are seeing what I want them to see), not against master. So if I happen to do my push cycle twice before the things propagate from master to www.kernel.org, _and_ if I happened to have run git prune in my private repository just before the second cycle, I may end up not having the objects referenced by "pu" branch there in my private repository.