summaryrefslogtreecommitdiff
path: root/t/t1450-fsck.sh
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:14:13 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-07-30 09:16:48 -0700
commit831279d3c18694e69a594767b7cc6a88af987cde (patch)
tree22256e202a6d1a77daa711019f932e1295dd3ee3 /t/t1450-fsck.sh
parentt9301: make hash size independent (diff)
downloadtgif-831279d3c18694e69a594767b7cc6a88af987cde.tar.xz
t9350: make hash size independent
This test checks for several commit object sizes to verify that objects are encoded as expected. However, the size of a commit object differs between SHA-1 and SHA-256, since each contains a hex representation of the tree's object ID. Since these are root commits, compute the size of each commit by using a constant plus the size of a single hex object ID. In addition, use $ZERO_OID instead of a hard-coded object ID. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1450-fsck.sh')
0 files changed, 0 insertions, 0 deletions