@matheusbsbs / matheus-bagliano / commits / 48ec3e5c07
Fork 0

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 <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johan Herland committed Jun 15, 2008 at 16:04 UTC 48ec3e5c073e97c15842ac16523444786b37774e
1 file changed +1
builtin-fetch-pack.c
+1
@@ -820,5 +820,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
820 }
821 }
822
823 + reprepare_packed_git();
824 return ref_cpy;
825 }