author | Junio C Hamano <junkio@cox.net> | |
Fri, 1 Sep 2006 22:05:12 +0000 (15:05 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 3 Sep 2006 00:08:10 +0000 (17:08 -0700) | ||
commit | df6d61017a17efe67e4709028fea8e820b5efc5e | |
tree | 535930423bfbc4d3de5360c152db463278544ee5 | tree | snapshot |
parent | 6ce4e61f1be690681f6494eb5ca26540c2316f81 | commit | diff |
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>
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 | diff | blob | history |