THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

commit-graph: not compatible with uninitialized repo

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tags/v2.20.0-rc0
Derrick Stolee Junio C Hamano 1 year ago
parent
commit
5cef295f28
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      commit-graph.c

+ 3
- 0
commit-graph.c View File

@@ -62,6 +62,9 @@ extern int read_replace_refs;

static int commit_graph_compatible(struct repository *r)
{
if (!r->gitdir)
return 0;

if (read_replace_refs) {
prepare_replace_object(r);
if (hashmap_get_size(&r->objects->replace_map->map))


Loading…
Cancel
Save