From d1af002dc608be3213ba18df1a99ced0ab42e6d6 Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Fri, 20 May 2005 16:59:17 -0400 Subject: [PATCH] delta check This adds knowledge of delta objects to fsck-cache and various object parsing code. A new switch to git-fsck-cache is provided to display the maximum delta depth found in a repository. Signed-off-by: Nicolas Pitre Signed-off-by: Linus Torvalds --- blob.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blob.c') diff --git a/blob.c b/blob.c index 280f524157..c800cd3905 100644 --- a/blob.c +++ b/blob.c @@ -14,6 +14,8 @@ struct blob *lookup_blob(unsigned char *sha1) ret->object.type = blob_type; return ret; } + if (!obj->type) + obj->type = blob_type; if (obj->type != blob_type) { error("Object %s is a %s, not a blob", sha1_to_hex(sha1), obj->type); -- cgit v1.2.3