]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7508: use $ZERO_OID instead of hard-coded constant
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 29 Jul 2020 23:14:06 +0000 (23:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2020 16:16:47 +0000 (09:16 -0700)
Use the ZERO_OID variable to abbreviate the all-zeros object ID for
maintainability and to avoid depending on a specific size for the hash.

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>
t/t7508-status.sh

index 8e969f3e3680d856073460b5b15e524ad9170d7f..e81759319f57b96c1b03afb51dcb93d620f13482 100755 (executable)
@@ -837,7 +837,7 @@ EOF
 '
 
 cat >expect <<EOF
-:100644 100644 $EMPTY_BLOB 0000000000000000000000000000000000000000 M  dir1/modified
+:100644 100644 $EMPTY_BLOB $ZERO_OID M dir1/modified
 EOF
 test_expect_success 'status refreshes the index' '
        touch dir2/added &&