Skip to content

Commit a5587b8

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 66b6d43 commit a5587b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7508-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ EOF
837837
'
838838

839839
cat >expect <<EOF
840-
:100644 100644 $EMPTY_BLOB 0000000000000000000000000000000000000000 M dir1/modified
840+
:100644 100644 $EMPTY_BLOB $ZERO_OID M dir1/modified
841841
EOF
842842
test_expect_success 'status refreshes the index' '
843843
touch dir2/added &&

0 commit comments

Comments
 (0)