apply.c: make init_apply_state() take a struct repository
[gitweb.git] / notes-cache.c
index d5770031776283171d702886dc1ebb301bb6e6b1..d87e7ca91cdecb158ca93659fb58968e92b18b31 100644 (file)
@@ -1,6 +1,7 @@
 #include "cache.h"
 #include "notes-cache.h"
 #include "object-store.h"
+#include "repository.h"
 #include "commit.h"
 #include "refs.h"
 
@@ -15,7 +16,7 @@ static int notes_cache_match_validity(const char *ref, const char *validity)
        if (read_ref(ref, &oid) < 0)
                return 0;
 
-       commit = lookup_commit_reference_gently(&oid, 1);
+       commit = lookup_commit_reference_gently(the_repository, &oid, 1);
        if (!commit)
                return 0;