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.
This commit is contained in:
Linus Torvalds
2005-04-24 14:10:55 -07:00
parent da6abf5d9c
commit 4728b861ac
2 changed files with 9 additions and 2 deletions

1
blob.c
View File

@ -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) {