Browse files

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 <>
  • Loading branch information...
1 parent e449f10 commit 48ec3e5c073e97c15842ac16523444786b37774e @jherland jherland committed with gitster Jun 15, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 builtin-fetch-pack.c
@@ -820,5 +820,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
+ reprepare_packed_git();
return ref_cpy;

0 comments on commit 48ec3e5

Please sign in to comment.