diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-04-14 17:35:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-16 12:38:58 +0900 |
commit | 660b373542589157aff78dd37ce582237027ba94 (patch) | |
tree | f67357eae9d26abec3f578157627cf5aa0106602 /t/t9153-git-svn-rewrite-uuid.sh | |
parent | pack-objects: shrink z_delta_size field in struct object_entry (diff) | |
download | tgif-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/t9153-git-svn-rewrite-uuid.sh')
0 files changed, 0 insertions, 0 deletions