OSDN Git Service

Incorporate fetched packs in future object traversal
authorJohan Herland <johan@herland.net>
Sun, 15 Jun 2008 14:04:20 +0000 (16:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2008 22:53:13 +0000 (15:53 -0700)
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>
builtin-fetch-pack.c

index de1e8d1..f4dbcf0 100644 (file)
@@ -820,5 +820,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
                }
        }
 
+       reprepare_packed_git();
        return ref_cpy;
 }