mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
commit-graph: not compatible with uninitialized repo
Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
20fd6d5799
commit
5cef295f28
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue