summaryrefslogtreecommitdiff
path: root/builtin/index-pack.c
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2019-06-28 22:59:25 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-07-01 13:28:19 -0700
commitb0d3c42eb48a56d0f2c59baa09b4733a27e620c8 (patch)
treeb18fafa408d3b41599f06b7a1df53e4c529815db /builtin/index-pack.c
parentt0027: make hash size independent (diff)
downloadtgif-b0d3c42eb48a56d0f2c59baa09b4733a27e620c8.tar.xz
t0090: make test pass with SHA-256
One assertion of this test checks for a shrinking cache tree. The initial index contains a cache tree with two directory names but no object ID, and the second index contains a cache tree with an object ID but no directory name. With SHA-1, the second index is smaller than the first, because the directory information stored takes more than the 20 bytes of an SHA-1 hash, but with SHA-256, the hash is longer, and the test fails the assertion that the second index is smaller than the first. To address this issue, increase the length of the subdirectory name to ensure that the cache tree does indeed shrink in size regardless of the algorithm in use. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/index-pack.c')
0 files changed, 0 insertions, 0 deletions