aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-25 11:54:17 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-25 11:54:18 -0800
commitb1f4b5888b473bc2f8412ed4477a47c3b06fb3a5 (patch)
treee9c7ab509b5aa17cdf8ba56e350a1adf3a5dbac9 /t
parentd21437a91623e3ff63f4620e486eef7088103d73 (diff)
parentf4eff7116dabac7e4f5a6aad8a74feaebdcb8342 (diff)
downloadgit-b1f4b5888b473bc2f8412ed4477a47c3b06fb3a5.tar.xz
Merge branch 'ps/pack-concat-wo-backfill'
"git pack-objects --stdin-packs" with "--exclude-promisor-objects" fetched objects that are promised, which was not wanted. This has been fixed. * ps/pack-concat-wo-backfill: builtin/pack-objects: don't fetch objects when merging packs
Diffstat (limited to 't')
-rwxr-xr-xt/t5331-pack-objects-stdin.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t5331-pack-objects-stdin.sh b/t/t5331-pack-objects-stdin.sh
index cd949025b9..c3bbc76b0d 100755
--- a/t/t5331-pack-objects-stdin.sh
+++ b/t/t5331-pack-objects-stdin.sh
@@ -358,6 +358,24 @@ test_expect_success '--stdin-packs with promisors' '
)
'
+test_expect_success '--stdin-packs does not perform backfill fetch' '
+ test_when_finished "rm -rf remote client" &&
+
+ git init remote &&
+ test_commit_bulk -C remote 10 &&
+ git -C remote config set --local uploadpack.allowfilter 1 &&
+ git -C remote config set --local uploadpack.allowanysha1inwant 1 &&
+
+ git clone --filter=tree:0 "file://$(pwd)/remote" client &&
+ (
+ cd client &&
+ ls .git/objects/pack/*.promisor | sed "s|.*/||; s/\.promisor$/.pack/" >packs &&
+ test_line_count -gt 1 packs &&
+ GIT_TRACE2_EVENT="$(pwd)/event.log" git pack-objects --stdin-packs pack <packs &&
+ test_grep ! "\"event\":\"child_start\"" event.log
+ )
+'
+
stdin_packs__follow_with_only () {
rm -fr stdin_packs__follow_with_only &&
git init stdin_packs__follow_with_only &&