]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5318: update for SHA-256
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 7 Feb 2020 00:52:49 +0000 (00:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2020 19:07:30 +0000 (11:07 -0800)
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>
t/t5318-commit-graph.sh

index 81cf118cb6622b1984811b62df9dc7b9c957e1be..bc95db9e08e4acda821fec159ff749a659d5dea4 100755 (executable)
@@ -629,7 +629,7 @@ test_expect_success 'corrupt commit-graph write (broken parent)' '
                empty="$(git mktree </dev/null)" &&
                cat >broken <<-EOF &&
                tree $empty
-               parent 0000000000000000000000000000000000000000
+               parent $ZERO_OID
                author whatever <whatever@example.com> 1234 -0000
                committer whatever <whatever@example.com> 1234 -0000
 
@@ -650,7 +650,7 @@ test_expect_success 'corrupt commit-graph write (missing tree)' '
                cd repo &&
                tree="$(git mktree </dev/null)" &&
                cat >broken <<-EOF &&
-               parent 0000000000000000000000000000000000000000
+               parent $ZERO_OID
                author whatever <whatever@example.com> 1234 -0000
                committer whatever <whatever@example.com> 1234 -0000