Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2008-06-15 18:04:20 +0400
committerJunio C Hamano <gitster@pobox.com>2008-06-20 02:53:13 +0400
commit48ec3e5c073e97c15842ac16523444786b37774e (patch)
tree6a1a272227947587524441af7ba92081c1d4062b /builtin-fetch-pack.c
parente449f105805ffa49ccf7cf080db897ecf65a1a0f (diff)
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 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;
}