summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-05-24 19:39:39 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-05-24 19:39:39 -0700
commitd55a4ae71d515e788e5afb355a20c4b262049cac (patch)
tree19d9265dfbf72ff905d658c5e9742adfac68acb7 /builtin
parentMerge branch 'ma/doc-fixes' (diff)
parentfsck: use ERROR_MULTI_PACK_INDEX (diff)
downloadtgif-d55a4ae71d515e788e5afb355a20c4b262049cac.tar.xz
Merge branch 'ds/multi-pack-verify'
Fix for a copy-and-paste error introduced during 2.20 era. * ds/multi-pack-verify: fsck: use ERROR_MULTI_PACK_INDEX
Diffstat (limited to 'builtin')
-rw-r--r--builtin/fsck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c
index 8d13794b14..f02cbdb439 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)
{
@@ -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;
}
}