cache: convert get_graft_file to handle arbitrary repositories
[gitweb.git] / bulk-checkin.c
index e5ce2a795433b5d369cf5a03aaa7d35694ae81fd..918d58a7ebf27c3f20615ce7dc05e39748813ede 100644 (file)
@@ -3,10 +3,12 @@
  */
 #include "cache.h"
 #include "bulk-checkin.h"
+#include "repository.h"
 #include "csum-file.h"
 #include "pack.h"
 #include "strbuf.h"
 #include "packfile.h"
+#include "object-store.h"
 
 static struct bulk_checkin_state {
        unsigned plugged:1;
@@ -57,7 +59,7 @@ static void finish_bulk_checkin(struct bulk_checkin_state *state)
 
        strbuf_release(&packname);
        /* Make objects we just wrote available to ourselves */
-       reprepare_packed_git();
+       reprepare_packed_git(the_repository);
 }
 
 static int already_written(struct bulk_checkin_state *state, struct object_id *oid)