Merge branch 'mm/checkout-auto-track-fix'
[gitweb.git] / builtin / index-pack.c
index 9c1cfac4427ef8d8fbca0834e1c8b644ceddf998..9e9eb4b74e8335f097c7cc9e261b051feda0bf0d 100644 (file)
@@ -770,6 +770,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
                        if (obj->type == OBJ_TREE) {
                                struct tree *item = (struct tree *) obj;
                                item->buffer = NULL;
+                               obj->parsed = 0;
                        }
                        if (obj->type == OBJ_COMMIT) {
                                struct commit *commit = (struct commit *) obj;