Merge branch 'sb/packfiles-in-repository' into next
[gitweb.git] / fetch-pack.c
index 373dc90bbec365384bbd02fcd4573744cef30634..216d1368beffbba7364b9d8c014ddf144595c8c1 100644 (file)
@@ -1,4 +1,5 @@
 #include "cache.h"
+#include "repository.h"
 #include "config.h"
 #include "lockfile.h"
 #include "refs.h"
@@ -1567,7 +1568,7 @@ struct ref *fetch_pack(struct fetch_pack_args *args,
        else
                ref_cpy = do_fetch_pack(args, fd, ref, sought, nr_sought,
                                        &si, pack_lockfile);
-       reprepare_packed_git();
+       reprepare_packed_git(the_repository);
        update_shallow(args, sought, nr_sought, &si);
        clear_shallow_info(&si);
        return ref_cpy;