summaryrefslogtreecommitdiff
path: root/builtin-fetch-pack.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2008-06-15 14:04:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-19 22:53:13 (GMT)
commit48ec3e5c073e97c15842ac16523444786b37774e (patch)
tree6a1a272227947587524441af7ba92081c1d4062b /builtin-fetch-pack.c
parente449f105805ffa49ccf7cf080db897ecf65a1a0f (diff)
downloadgit-48ec3e5c073e97c15842ac16523444786b37774e.zip
git-48ec3e5c073e97c15842ac16523444786b37774e.tar.gz
git-48ec3e5c073e97c15842ac16523444786b37774e.tar.bz2
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c
index de1e8d1..f4dbcf0 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;
}