]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.c
bundle: unbundle promisor packs
authorDerrick Stolee <derrickstolee@github.com>
Wed, 9 Mar 2022 16:01:42 +0000 (16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 18:25:28 +0000 (10:25 -0800)
commit4f39eb031af8690eb86eb781e43b10141dd47da9
treebc94ca98e354fdab76eb2c27cd54bcbb3f724590
parentf18b512bbba8ee508fec64698f581920bfa5b46d
bundle: unbundle promisor packs

In order to have a valid pack-file after unbundling a bundle that has
the 'filter' capability, we need to generate a .promisor file. The
bundle does not promise _where_ the objects can be found, but we can
expect that these bundles will be unbundled in repositories with
appropriate promisor remotes that can find those missing objects.

Use the 'git index-pack --promisor=<message>' option to create this
.promisor file. Add "from-bundle" as the message to help anyone diagnose
issues with these promisor packs.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c
t/t6020-bundle-misc.sh