summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-11-10 09:02:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-10 09:02:10 (GMT)
commit026587c79365aa7d204e4b4ee70ca9dbb181d688 (patch)
tree83e5940bfea47ce20b90516ef10e6b0db05f2e19 /builtin
parentda72936f544fec5a335e66432610e4cef4430991 (diff)
parent5374a290aa56390f9f44547d52f8f30fb2e866aa (diff)
downloadgit-026587c79365aa7d204e4b4ee70ca9dbb181d688.zip
git-026587c79365aa7d204e4b4ee70ca9dbb181d688.tar.gz
git-026587c79365aa7d204e4b4ee70ca9dbb181d688.tar.bz2
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 094c2f8..78b23d7 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);