X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin%2Ffsck.c;h=37aa07da78ebe9130c4d48865810bfc87d9f4ea0;hb=645f63111b9fc456cc48da9b320b86800fe5477c;hp=5ebf81374a51c34a9cfb1ac35ae25848abb72f20;hpb=03f2465bb1c1d9222181c493373e668c0ba7eb51;p=thirdparty%2Fgit.git diff --git a/builtin/fsck.c b/builtin/fsck.c index 5ebf81374a..37aa07da78 100644 --- a/builtin/fsck.c +++ b/builtin/fsck.c @@ -49,6 +49,7 @@ static int name_objects; #define ERROR_PACK 04 #define ERROR_REFS 010 #define ERROR_COMMIT_GRAPH 020 +#define ERROR_MULTI_PACK_INDEX 040 static const char *describe_object(const struct object_id *oid) { @@ -240,7 +241,7 @@ static void mark_unreachable_referents(const struct object_id *oid) enum object_type type = oid_object_info(the_repository, &obj->oid, NULL); if (type > 0) - object_as_type(the_repository, obj, type, 0); + object_as_type(obj, type, 0); } options.walk = mark_used; @@ -952,7 +953,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix) midx_argv[2] = "--object-dir"; midx_argv[3] = odb->path; if (run_command(&midx_verify)) - errors_found |= ERROR_COMMIT_GRAPH; + errors_found |= ERROR_MULTI_PACK_INDEX; } }