3 # Copyright (c) 2018 Johannes Schindelin
6 test_description
='git pack-object with "large" deltas
10 TEST_PASSES_SANITIZE_LEAK
=true
12 .
"$TEST_DIRECTORY"/lib-pack.sh
14 # Two similar-ish objects that we have computed deltas between.
15 A
=$
(test_oid packlib_7_0
)
16 B
=$
(test_oid packlib_7_76
)
18 test_expect_success
'setup' '
25 pack_trailer ab.pack &&
26 git index-pack --stdin <ab.pack
29 test_expect_success
'repack large deltas' '
30 printf "%s\\n" $A $B |
31 GIT_TEST_OE_DELTA_SIZE=2 git pack-objects tmp-pack