Merge branch 'jc/clean-after-sanity-tests'
[gitweb.git] / blame.c
diff --git a/blame.c b/blame.c
index ba1b33c7f4e92c432d4cbdcb43b8d061e436f027..a5c9bd78ab09ce1d1ce40f82ccf13fcc8d973eec 100644 (file)
--- a/blame.c
+++ b/blame.c
@@ -6,6 +6,7 @@
 #include "diffcore.h"
 #include "tag.h"
 #include "blame.h"
+#include "alloc.h"
 #include "commit-slab.h"
 
 define_commit_slab(blame_suspects, struct blame_origin *);
@@ -179,7 +180,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;