From: Johan Herland Date: Sun, 15 Jun 2008 14:04:20 +0000 (+0200) Subject: Incorporate fetched packs in future object traversal X-Git-Tag: v1.6.0-rc0~211^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=48ec3e5c073e97c15842ac16523444786b37774e;p=git.git 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 --- 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; }