summaryrefslogtreecommitdiff
path: root/t/t2107-update-index-basic.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-03-25 19:20:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 22:10:48 (GMT)
commit31bdb1f28ecdce738aa3f2f23b7b1c531a06e76e (patch)
treef1f6ef2d054f7d9c8ef3135ec2d6151255b62a6e /t/t2107-update-index-basic.sh
parent736f2efcfb841b11e25007f6baebd4a4c64bcaa5 (diff)
downloadgit-31bdb1f28ecdce738aa3f2f23b7b1c531a06e76e.zip
git-31bdb1f28ecdce738aa3f2f23b7b1c531a06e76e.tar.gz
git-31bdb1f28ecdce738aa3f2f23b7b1c531a06e76e.tar.bz2
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>
Diffstat (limited to 't/t2107-update-index-basic.sh')
-rwxr-xr-xt/t2107-update-index-basic.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t2107-update-index-basic.sh b/t/t2107-update-index-basic.sh
index 32ac6e0..1db7e6a 100755
--- a/t/t2107-update-index-basic.sh
+++ b/t/t2107-update-index-basic.sh
@@ -85,9 +85,9 @@ test_expect_success '--chmod=+x and chmod=-x in the same argument list' '
>B &&
git add A B &&
git update-index --chmod=+x A --chmod=-x B &&
- cat >expect <<-\EOF &&
- 100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 A
- 100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 B
+ cat >expect <<-EOF &&
+ 100755 $EMPTY_BLOB 0 A
+ 100644 $EMPTY_BLOB 0 B
EOF
git ls-files --stage A B >actual &&
test_cmp expect actual