alloc: add repository argument to alloc_commit_node
[gitweb.git] / merge-recursive.c
index 0c0d48624da1d6162f0804e4a105841d965bb2c2..6dac890864882744d3936391bbe5067a23411af3 100644 (file)
@@ -98,7 +98,7 @@ static struct tree *shift_tree_object(struct tree *one, struct tree *two,
 
 static struct commit *make_virtual_commit(struct tree *tree, const char *comment)
 {
-       struct commit *commit = alloc_commit_node();
+       struct commit *commit = alloc_commit_node(the_repository);
 
        set_merge_remote_desc(commit, comment, (struct object *)commit);
        commit->tree = tree;