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 --- commit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commit.c') diff --git a/commit.c b/commit.c index e83056406f..3f2235ecf8 100644 --- a/commit.c +++ b/commit.c @@ -37,6 +37,8 @@ struct commit *lookup_commit(unsigned char *sha1) ret->object.type = commit_type; return ret; } + if (!obj->type) + obj->type = commit_type; return check_commit(obj, sha1); } -- cgit v1.2.3