Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/blob.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-25 01:10:55 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-25 01:10:55 +0400
commit4728b861ace127dc39c648f3bea64c3b86bbabc5 (patch)
tree242227fc3c3a74d070ed36496e790335dd00c44a /blob.c
parentda6abf5d9c342a74dffbcc2015b9c27d7819a900 (diff)
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 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) {