summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-03-25 13:57:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-03-25 13:57:43 -0700
commit4cd9bb45c7f749d1b752d94166805d47fbffdece (patch)
treea0b4fefce36959cccb06512c8c2121826c9be36a
parentMerge branch 'rs/doc-passthru-fetch-options' (diff)
parentconnected.c: reprepare packs for corner cases (diff)
downloadtgif-4cd9bb45c7f749d1b752d94166805d47fbffdece.tar.xz
Merge branch 'ds/check-connected-reprepare-packed-git'
Corner case "git fetch" fix. * ds/check-connected-reprepare-packed-git: connected.c: reprepare packs for corner cases
-rw-r--r--connected.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/connected.c b/connected.c
index 7e9bd1bc62..ac52b07b47 100644
--- a/connected.c
+++ b/connected.c
@@ -61,7 +61,11 @@ int check_connected(oid_iterate_fn fn, void *cb_data,
* object is a promisor object. Instead, just make sure we
* received, in a promisor packfile, the objects pointed to by
* each wanted ref.
+ *
+ * Before checking for promisor packs, be sure we have the
+ * latest pack-files loaded into memory.
*/
+ reprepare_packed_git(the_repository);
do {
struct packed_git *p;