[PATCH 1/4] Incorporate fetched packs in future object traversal
- From
Johan Herland <johan@herland.net>
- Date
- Jun 15, 2008, 14:04 UTC
- Message-ID
- <200806151604.20810.johan@herland.net>
- In-Reply-To
- <200806151602.03445.johan@herland.net>
Immediately after fetching a pack, we should call reprepare_packed_git() to make sure the objects in the pack are reachable. Otherwise, we will fail to look up objects that are present only in the fetched pack.
Signed-off-by: Johan Herland <johan@herland.net> --- builtin-fetch-pack.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c index de1e8d1..f4dbcf0 100644 --- a/builtin-fetch-pack.c +++ b/builtin-fetch-pack.c @@ -820,5 +820,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args, } } + reprepare_packed_git(); return ref_cpy; }
-- 1.5.6.rc2.128.gf64ae