t2107: abstract away SHA-1-specific constants

Use the $EMPTY_BLOB variable instead of hard-coding a hash. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Mar 25, 2018 at 19:20 UTC 31bdb1f28ecdce738aa3f2f23b7b1c531a06e76e
1 file changed +3 -3
t/t2107-update-index-basic.sh
+3 -3
@@ -85,9 +85,9 @@ test_expect_success '--chmod=+x and chmod=-x in the same argument list' '
85 >B &&
86 git add A B &&
87 git update-index --chmod=+x A --chmod=-x B &&
88 - cat >expect <<-\EOF &&
89 - 100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 A
90 - 100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 B
88 + cat >expect <<-EOF &&
89 + 100755 $EMPTY_BLOB 0 A
90 + 100644 $EMPTY_BLOB 0 B
91 EOF
92 git ls-files --stage A B >actual &&
93 test_cmp expect actual