]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.c
commit-graph: not compatible with grafts
[thirdparty/git.git] / commit-graph.c
index 2c01fa433f3d32c653b9c06f248fac58fece5262..c4eaedf4e5448075d2db678ea9e13e58bdb514e9 100644 (file)
@@ -68,6 +68,12 @@ static int commit_graph_compatible(struct repository *r)
                        return 0;
        }
 
+       prepare_commit_graft(r);
+       if (r->parsed_objects && r->parsed_objects->grafts_nr)
+               return 0;
+       if (is_repository_shallow(r))
+               return 0;
+
        return 1;
 }