Merge branch 'du/rev-parse-is-plumbing' into maint
[gitweb.git] / notes-cache.c
index e61988e503b0b2097afeb6716123d88429c0717d..d87e7ca91cdecb158ca93659fb58968e92b18b31 100644 (file)
@@ -1,5 +1,7 @@
 #include "cache.h"
 #include "notes-cache.h"
+#include "object-store.h"
+#include "repository.h"
 #include "commit.h"
 #include "refs.h"
 
@@ -14,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;