summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-11-10 18:02:10 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-10 18:02:10 +0900
commit026587c79365aa7d204e4b4ee70ca9dbb181d688 (patch)
tree83e5940bfea47ce20b90516ef10e6b0db05f2e19 /builtin
parentGit 2.24 (diff)
parentfetch-pack: write fetched refs to .promisor (diff)
downloadtgif-026587c79365aa7d204e4b4ee70ca9dbb181d688.tar.xz
Merge branch 'jt/fetch-pack-record-refs-in-the-dot-promisor'
Debugging support for lazy cloning has been a bit improved. * jt/fetch-pack-record-refs-in-the-dot-promisor: fetch-pack: write fetched refs to .promisor
Diffstat (limited to 'builtin')
-rw-r--r--builtin/repack.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin/repack.c b/builtin/repack.c
index 094c2f8ea4..78b23d7a9a 100644
--- a/builtin/repack.c
+++ b/builtin/repack.c
@@ -233,6 +233,13 @@ static void repack_promisor_objects(const struct pack_objects_args *args,
/*
* pack-objects creates the .pack and .idx files, but not the
* .promisor file. Create the .promisor file, which is empty.
+ *
+ * NEEDSWORK: fetch-pack sometimes generates non-empty
+ * .promisor files containing the ref names and associated
+ * hashes at the point of generation of the corresponding
+ * packfile, but this would not preserve their contents. Maybe
+ * concatenate the contents of all .promisor files instead of
+ * just creating a new empty file.
*/
promisor_name = mkpathdup("%s-%s.promisor", packtmp,
line.buf);