X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin%2Freceive-pack.c;h=469b91670782c32d7bc3fb0cb82543ce60d53976;hb=a49d2834359a3fa943edf81e2d146fc787bc1cfe;hp=b7ce7c7f5275febbf6db6b71e3b610b09a4fe191;hpb=ed1b87ef910fe38dfb9cf044f5c946adfab0c5e3;p=thirdparty%2Fgit.git diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index b7ce7c7f52..469b916707 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -1,4 +1,5 @@ #include "builtin.h" +#include "repository.h" #include "config.h" #include "lockfile.h" #include "pack.h" @@ -1777,7 +1778,7 @@ static const char *unpack(int err_fd, struct shallow_info *si) status = finish_command(&child); if (status) return "index-pack abnormal exit"; - reprepare_packed_git(); + reprepare_packed_git(the_repository); } return NULL; } @@ -2026,7 +2027,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix) proc.git_cmd = 1; proc.argv = argv_gc_auto; - close_all_packs(); + close_all_packs(the_repository->objects); if (!start_command(&proc)) { if (use_sideband) copy_to_sideband(proc.err, -1, NULL);