t7508: use $ZERO_OID instead of hard-coded constant
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>
brian m. carlson committed
Jul 29, 2020 at 23:14 UTC
a5587b8544bba0eeb13ff6937639602e6a471dd6
1 file changed
+1
-1
t/t7508-status.sh
+1
-1
@@ -837,7 +837,7 @@ EOF
837
'
838
839
cat >expect <<EOF
840
-:100644 100644 $EMPTY_BLOB 0000000000000000000000000000000000000000 M dir1/modified
840
+:100644 100644 $EMPTY_BLOB $ZERO_OID M dir1/modified
841
EOF
842
test_expect_success 'status refreshes the index' '
843
touch dir2/added &&