summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johan Herland <johan@herland.net>2008-06-15 16:04:20 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-19 15:53:13 -0700
commit48ec3e5c073e97c15842ac16523444786b37774e (patch)
tree6a1a272227947587524441af7ba92081c1d4062b
parentGIT 1.5.6 (diff)
downloadtgif-48ec3e5c073e97c15842ac16523444786b37774e.tar.xz
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>
-rw-r--r--builtin-fetch-pack.c1
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;
}