diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-09-13 21:38:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-13 21:38:24 +0300 |
commit | 655e49404792a302b16fa640e1fa6041052996f9 (patch) | |
tree | cfab9f41c905fa92c86980693d9ca693462c218e /revision.c | |
parent | 8b2f027e2096848b32cd8e0daa362fe08e5276c4 (diff) | |
parent | b27ccae34ba2cabbface87d6e0f80695316bcd59 (diff) |
Merge branch 'jk/rev-list-verify-objects-fix'
"git rev-list --verify-objects" ought to inspect the contents of
objects and notice corrupted ones, but it didn't when the commit
graph is in use, which has been corrected.
* jk/rev-list-verify-objects-fix:
rev-list: disable commit graph with --verify-objects
lookup_commit_in_graph(): use prepare_commit_graph() to check for graph
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.c b/revision.c index a04ebd6139..c516415c48 100644 --- a/revision.c +++ b/revision.c @@ -2418,6 +2418,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg revs->tree_objects = 1; revs->blob_objects = 1; revs->verify_objects = 1; + disable_commit_graph(revs->repo); } else if (!strcmp(arg, "--unpacked")) { revs->unpacked = 1; } else if (starts_with(arg, "--unpacked=")) { |