summaryrefslogtreecommitdiff
path: root/t/t2107-update-index-basic.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-13 02:24:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-14 02:02:00 (GMT)
commit8125a58b912e52eba7889e1dba9fe6d711b0ffdf (patch)
tree38a6b544562892c7d8bdb77a78e4ecb282f13395 /t/t2107-update-index-basic.sh
parent198857bf7ed1dc2403884c1e6900650b50e0f0a9 (diff)
downloadgit-8125a58b912e52eba7889e1dba9fe6d711b0ffdf.zip
git-8125a58b912e52eba7889e1dba9fe6d711b0ffdf.tar.gz
git-8125a58b912e52eba7889e1dba9fe6d711b0ffdf.tar.bz2
t: switch $_z40 to $ZERO_OID
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_z40/$ZERO_OID/g' 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.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t2107-update-index-basic.sh b/t/t2107-update-index-basic.sh
index 1db7e6a..2242cd0 100755
--- a/t/t2107-update-index-basic.sh
+++ b/t/t2107-update-index-basic.sh
@@ -37,7 +37,7 @@ test_expect_success '--cacheinfo does not accept blob null sha1' '
echo content >file &&
git add file &&
git rev-parse :file >expect &&
- test_must_fail git update-index --cacheinfo 100644 $_z40 file &&
+ test_must_fail git update-index --cacheinfo 100644 $ZERO_OID file &&
git rev-parse :file >actual &&
test_cmp expect actual
'
@@ -47,7 +47,7 @@ test_expect_success '--cacheinfo does not accept gitlink null sha1' '
(cd submodule && test_commit foo) &&
git add submodule &&
git rev-parse :submodule >expect &&
- test_must_fail git update-index --cacheinfo 160000 $_z40 submodule &&
+ test_must_fail git update-index --cacheinfo 160000 $ZERO_OID submodule &&
git rev-parse :submodule >actual &&
test_cmp expect actual
'