pack-objects: re-validate data we copy from elsewhere.
authorJunio C Hamano <junkio@cox.net>
Fri, 1 Sep 2006 22:05:12 +0000 (15:05 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 3 Sep 2006 00:08:10 +0000 (17:08 -0700)
commitdf6d61017a17efe67e4709028fea8e820b5efc5e
tree535930423bfbc4d3de5360c152db463278544ee5
parent6ce4e61f1be690681f6494eb5ca26540c2316f81
pack-objects: re-validate data we copy from elsewhere.

When reusing data from an existing pack and from a new style
loose objects, we used to just copy it staight into the
resulting pack.  Instead make sure they are not corrupt, but
do so only when we are not streaming to stdout, in which case
the receiving end will do the validation either by unpacking
the stream or by constructing the .idx file.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c