diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-11-01 23:48:08 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-01 23:48:08 +0300 |
commit | b82299ec6fe245595b3ac4abf5458bcb032ba62e (patch) | |
tree | 88fa6a59d57182f2bd4935fabe911d8dbab1cc02 /builtin/commit-graph.c | |
parent | b93d7206919e9eac22b3ca0291bce8da65960595 (diff) | |
parent | 095d112f8cce6610bb4ed112a5318d4379322b55 (diff) |
Merge branch 'ab/ignore-replace-while-working-on-commit-graph'
Teach "git commit-graph" command not to allow using replace objects
at all, as we do not use the commit-graph at runtime when we see
object replacement.
* ab/ignore-replace-while-working-on-commit-graph:
commit-graph: don't consider "replace" objects with "verify"
commit-graph tests: fix another graph_git_two_modes() helper
commit-graph tests: fix error-hiding graph_git_two_modes() helper
Diffstat (limited to 'builtin/commit-graph.c')
-rw-r--r-- | builtin/commit-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c index ab8e5cd59a..4247fbde95 100644 --- a/builtin/commit-graph.c +++ b/builtin/commit-graph.c @@ -263,7 +263,6 @@ static int graph_write(int argc, const char **argv) git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0)) flags |= COMMIT_GRAPH_WRITE_BLOOM_FILTERS; - read_replace_refs = 0; odb = find_odb(the_repository, opts.obj_dir); if (opts.reachable) { @@ -318,6 +317,7 @@ int cmd_commit_graph(int argc, const char **argv, const char *prefix) if (!argc) goto usage; + read_replace_refs = 0; save_commit_buffer = 0; if (!strcmp(argv[0], "verify")) |