summaryrefslogtreecommitdiff
path: root/t/t0056-git-C.sh
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-04-14 17:35:08 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-04-16 12:38:58 +0900
commit660b373542589157aff78dd37ce582237027ba94 (patch)
treef67357eae9d26abec3f578157627cf5aa0106602 /t/t0056-git-C.sh
parentpack-objects: shrink z_delta_size field in struct object_entry (diff)
downloadtgif-660b373542589157aff78dd37ce582237027ba94.tar.xz
pack-objects: don't check size when the object is bad
sha1_object_info() in check_objects() may fail to locate an object in the pack and return type OBJ_BAD. In that case, it will likely leave the "size" field untouched. We delay error handling until later in prepare_pack() though. Until then, do not touch "size" field. This field should contain the default value zero, but we can't say sha1_object_info() cannot damage it. This becomes more important later when the object size may have to be retrieved back from the (non-existing) pack. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0056-git-C.sh')
0 files changed, 0 insertions, 0 deletions