diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-03-09 17:01:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-09 19:25:28 +0100 |
commit | 4f39eb031af8690eb86eb781e43b10141dd47da9 (patch) | |
tree | bc94ca98e354fdab76eb2c27cd54bcbb3f724590 /t/t6020-bundle-misc.sh | |
parent | bundle: create filtered bundles (diff) | |
download | git-4f39eb031af8690eb86eb781e43b10141dd47da9.tar.xz git-4f39eb031af8690eb86eb781e43b10141dd47da9.zip |
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>
Diffstat (limited to '')
-rwxr-xr-x | t/t6020-bundle-misc.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t6020-bundle-misc.sh b/t/t6020-bundle-misc.sh index 6e97c044ee..7c6db67022 100755 --- a/t/t6020-bundle-misc.sh +++ b/t/t6020-bundle-misc.sh @@ -521,6 +521,8 @@ do git init unbundled && git -C unbundled bundle unbundle ../partial.bdl >ref-list.txt && + ls unbundled/.git/objects/pack/pack-*.promisor >promisor && + test_line_count = 1 promisor && # Count the same number of reachable objects. reflist=$(git for-each-ref --format="%(objectname)") && |