summaryrefslogtreecommitdiff
path: root/t/t7508-status.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:14:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-30 16:16:47 (GMT)
commita5587b8544bba0eeb13ff6937639602e6a471dd6 (patch)
tree74ffc5b276ccf5b06fc2788f408e086302190be8 /t/t7508-status.sh
parent66b6d43ca4a4367c697bba976704c6fb1771b0a7 (diff)
downloadgit-a5587b8544bba0eeb13ff6937639602e6a471dd6.zip
git-a5587b8544bba0eeb13ff6937639602e6a471dd6.tar.gz
git-a5587b8544bba0eeb13ff6937639602e6a471dd6.tar.bz2
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>
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-xt/t7508-status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 8e969f3..e817593 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -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 &&