Skip to content

Commit 48c10cc

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f7ae8e6 commit 48c10cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5318-commit-graph.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ test_expect_success 'corrupt commit-graph write (broken parent)' '
629629
empty="$(git mktree </dev/null)" &&
630630
cat >broken <<-EOF &&
631631
tree $empty
632-
parent 0000000000000000000000000000000000000000
632+
parent $ZERO_OID
633633
author whatever <[email protected]> 1234 -0000
634634
committer whatever <[email protected]> 1234 -0000
635635
@@ -650,7 +650,7 @@ test_expect_success 'corrupt commit-graph write (missing tree)' '
650650
cd repo &&
651651
tree="$(git mktree </dev/null)" &&
652652
cat >broken <<-EOF &&
653-
parent 0000000000000000000000000000000000000000
653+
parent $ZERO_OID
654654
author whatever <[email protected]> 1234 -0000
655655
committer whatever <[email protected]> 1234 -0000
656656

0 commit comments

Comments
 (0)