diff options
author | Johan Herland <johan@herland.net> | 2008-06-15 16:04:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-19 15:53:13 -0700 |
commit | 48ec3e5c073e97c15842ac16523444786b37774e (patch) | |
tree | 6a1a272227947587524441af7ba92081c1d4062b /builtin-fetch-pack.c | |
parent | e449f105805ffa49ccf7cf080db897ecf65a1a0f (diff) | |
download | git-48ec3e5c073e97c15842ac16523444786b37774e.tar.gz |
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>
Diffstat (limited to 'builtin-fetch-pack.c')
-rw-r--r-- | builtin-fetch-pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c index de1e8d1365..f4dbcf069e 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; } |