From: Nguyễn Thái Ngọc Duy Date: Sun, 31 Mar 2013 11:09:06 GMT Subject: [PATCH 2/4] index-pack: remove dead code (it should never happen) Message-ID: <1364728148-7537-3-git-send-email-pclouds@gmail.com> In-Reply-To: <1364728148-7537-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/index-pack.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/index-pack.c b/builtin/index-pack.c index ef62124..fdac7c7 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -735,8 +735,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 -- 1.8.2.83.gc99314b