summaryrefslogtreecommitdiffstats
path: root/blob.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 14:10:55 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 14:10:55 -0700
commit4728b861ace127dc39c648f3bea64c3b86bbabc5 (patch)
tree242227fc3c3a74d070ed36496e790335dd00c44a /blob.c
parentda6abf5d9c342a74dffbcc2015b9c27d7819a900 (diff)
downloadgit-4728b861ace127dc39c648f3bea64c3b86bbabc5.tar.gz
git-4728b861ace127dc39c648f3bea64c3b86bbabc5.tar.xz
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.
Diffstat (limited to 'blob.c')
-rw-r--r--blob.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/blob.c b/blob.c
index 35031af62..f79f5abd0 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) {