commit: add repository argument to register_commit_graft
[gitweb.git] / blame.c
diff --git a/blame.c b/blame.c
index dfa24473dc6e3d3d6428ca0fcdff75861d0c1aec..f689bde31cd56ae36d34f14a4ab06f7da0361dd1 100644 (file)
--- a/blame.c
+++ b/blame.c
@@ -1,11 +1,13 @@
 #include "cache.h"
 #include "refs.h"
+#include "object-store.h"
 #include "cache-tree.h"
 #include "mergesort.h"
 #include "diff.h"
 #include "diffcore.h"
 #include "tag.h"
 #include "blame.h"
+#include "alloc.h"
 
 void blame_origin_decref(struct blame_origin *o)
 {
@@ -161,7 +163,7 @@ static struct commit *fake_working_tree_commit(struct diff_options *opt,
 
        read_cache();
        time(&now);
-       commit = alloc_commit_node();
+       commit = alloc_commit_node(the_repository);
        commit->object.parsed = 1;
        commit->date = now;
        parent_tail = &commit->parents;