@matheusbsbs / matheus-bagliano / commits / 7a868c51c2
Fork 0

t5562: use $ZERO_OID

This test uses $_z40 to express an all-zeros object ID, which doesn't work for SHA-256. Use $ZERO_OID instead, which is the right size for all hash values. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Dec 21, 2019 at 19:49 UTC 7a868c51c2d1c43be6ad62f001edf581120c5b73
1 file changed +1 -1
t/t5562-http-backend-content-length.sh
+1 -1
@@ -59,7 +59,7 @@ test_expect_success 'setup' '
59 printf done | packetize >>fetch_body &&
60 test_copy_bytes 10 <fetch_body >fetch_body.trunc &&
61 hash_next=$(git commit-tree -p HEAD -m next HEAD^{tree}) &&
62 - printf "%s %s refs/heads/newbranch\\0report-status\\n" "$_z40" "$hash_next" | packetize >push_body &&
62 + printf "%s %s refs/heads/newbranch\\0report-status\\n" "$ZERO_OID" "$hash_next" | packetize >push_body &&
63 printf 0000 >>push_body &&
64 echo "$hash_next" | git pack-objects --stdout >>push_body &&
65 test_copy_bytes 10 <push_body >push_body.trunc &&