From 4728b861ace127dc39c648f3bea64c3b86bbabc5 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 24 Apr 2005 14:10:55 -0700 Subject: fsck-cache: notice missing "blob" objects. We should _not_ mark a blob object "parsed" just because we looked it up: it gets marked that way only once we've actually seen it. Otherwise we can never notice a missing blob. --- blob.c | 1 - 1 file changed, 1 deletion(-) (limited to 'blob.c') diff --git a/blob.c b/blob.c index 35031af62b..f79f5abd00 100644 --- a/blob.c +++ b/blob.c @@ -12,7 +12,6 @@ struct blob *lookup_blob(unsigned char *sha1) memset(ret, 0, sizeof(struct blob)); created_object(sha1, &ret->object); ret->object.type = blob_type; - ret->object.parsed = 1; return ret; } if (obj->parsed && obj->type != blob_type) { -- cgit v1.2.3