[PATCH v6 17/39] t7508: use $ZERO_OID instead of hard-coded constant
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Jul 29, 2020, 23:14 UTC
- Message-ID
- <20200729231428.3658647-18-sandals@crustytoothpaste.net>
- In-Reply-To
- <20200729231428.3658647-1-sandals@crustytoothpaste.net>
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> --- t/t7508-status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t7508-status.sh b/t/t7508-status.sh index 8e969f3e36..e81759319f 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 &&