t5318: update for SHA-256
Switch two tests to use $ZERO_OID to represent the all-zeros object ID. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
brian m. carlson committed
Feb 7, 2020 at 00:52 UTC
48c10cc0e6df1c916d00a661ee355817d82f30ca
1 file changed
+2
-2
t/t5318-commit-graph.sh
+2
-2
@@ -629,7 +629,7 @@ test_expect_success 'corrupt commit-graph write (broken parent)' '
629
empty="$(git mktree </dev/null)" &&
630
cat >broken <<-EOF &&
631
tree $empty
632
- parent 0000000000000000000000000000000000000000
632
+ parent $ZERO_OID
633
author whatever <whatever@example.com> 1234 -0000
634
committer whatever <whatever@example.com> 1234 -0000
635
@@ -650,7 +650,7 @@ test_expect_success 'corrupt commit-graph write (missing tree)' '
650
cd repo &&
651
tree="$(git mktree </dev/null)" &&
652
cat >broken <<-EOF &&
653
- parent 0000000000000000000000000000000000000000
653
+ parent $ZERO_OID
654
author whatever <whatever@example.com> 1234 -0000
655
committer whatever <whatever@example.com> 1234 -0000
656