mirror of
https://github.com/git/git.git
synced 2024-10-30 13:57:54 +01:00
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>
This commit is contained in:
parent
6035d6aad8
commit
920734b069
1 changed files with 1 additions and 2 deletions
|
@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
|
|||
int eaten;
|
||||
void *buf = (void *) data;
|
||||
|
||||
if (!buf)
|
||||
buf = new_data = get_data_from_pack(obj_entry);
|
||||
assert(data && "data can only be NULL for large _blobs_");
|
||||
|
||||
/*
|
||||
* we do not need to free the memory here, as the
|
||||
|
|
Loading…
Reference in a new issue