Skip to content

Commit e68a527

Browse files
derrickstoleegitster
authored andcommitted
fsck: use ERROR_MULTI_PACK_INDEX
The multi-pack-index was added to the data verified by git-fsck in ea5ae6c "fsck: verify multi-pack-index". This implementation was based on the implementation for verifying the commit-graph, and a copy-paste error kept the ERROR_COMMIT_GRAPH flag as the bit set when an error appears in the multi-pack-index. Add a new flag, ERROR_MULTI_PACK_INDEX, and use that instead. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 66ec039 commit e68a527

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builtin/fsck.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static int name_objects;
4949
#define ERROR_PACK 04
5050
#define ERROR_REFS 010
5151
#define ERROR_COMMIT_GRAPH 020
52+
#define ERROR_MULTI_PACK_INDEX 040
5253

5354
static const char *describe_object(struct object *obj)
5455
{
@@ -862,7 +863,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
862863
midx_argv[2] = "--object-dir";
863864
midx_argv[3] = alt->path;
864865
if (run_command(&midx_verify))
865-
errors_found |= ERROR_COMMIT_GRAPH;
866+
errors_found |= ERROR_MULTI_PACK_INDEX;
866867
}
867868
}
868869

0 commit comments

Comments
 (0)