Replace all die("BUG: ...") calls by BUG() ones
[gitweb.git] / builtin / fsck.c
index 13c0a8048ece6bc21a5326f290432601b9f65486..1ea414480a40942e41fef87f4664fd79373a0206 100644 (file)
@@ -519,7 +519,7 @@ static struct object *parse_loose_object(const struct object_id *oid,
                return NULL;
 
        if (!contents && type != OBJ_BLOB)
-               die("BUG: read_loose_object streamed a non-blob");
+               BUG("read_loose_object streamed a non-blob");
 
        obj = parse_object_buffer(oid, type, size, contents, &eaten);
 
@@ -735,8 +735,6 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
                        uint32_t total = 0, count = 0;
                        struct progress *progress = NULL;
 
-                       prepare_packed_git();
-
                        if (show_progress) {
                                for (p = get_packed_git(the_repository); p;
                                     p = p->next) {