index-pack: remove dead code (it should never happen)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
May 26, 2013 at 08:16 UTC
920734b069b269937b25a692d21c1623cbaec4b0
1 file changed
+1
-2
builtin/index-pack.c
+1
-2
@@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
747
int eaten;
748
void *buf = (void *) data;
749
750
- if (!buf)
751
- buf = new_data = get_data_from_pack(obj_entry);
750
+ assert(data && "data can only be NULL for large _blobs_");
751
752
/*
753
* we do not need to free the memory here, as the