From 48ec3e5c073e97c15842ac16523444786b37774e Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Sun, 15 Jun 2008 16:04:20 +0200 Subject: [PATCH] Incorporate fetched packs in future object traversal 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 Signed-off-by: Junio C Hamano --- builtin-fetch-pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c index de1e8d136..f4dbcf069 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; } -- 2.30.2