@@ -1151,7 +1151,7 @@ test_expect_success 'fetch exact SHA1' '
11511151 # unadvertised objects, so restrict this test to v0.
11521152
11531153 # fetching the hidden object should fail by default
1154- test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
1154+ test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
11551155 git fetch -v ../testrepo $the_commit:refs/heads/copy 2>err &&
11561156 test_i18ngrep "Server does not allow request for unadvertised object" err &&
11571157 test_must_fail git rev-parse --verify refs/heads/copy &&
12101210 cd shallow &&
12111211 # Some protocol versions (e.g. 2) support fetching
12121212 # unadvertised objects, so restrict this test to v0.
1213- test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
1213+ test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
12141214 git fetch --depth=1 ../testrepo/.git $SHA1 &&
12151215 git --git-dir=../testrepo/.git config uploadpack.allowreachablesha1inwant true &&
12161216 git fetch --depth=1 ../testrepo/.git $SHA1 &&
@@ -1241,17 +1241,17 @@ do
12411241 cd shallow &&
12421242 # Some protocol versions (e.g. 2) support fetching
12431243 # unadvertised objects, so restrict this test to v0.
1244- test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
1244+ test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
12451245 git fetch ../testrepo/.git $SHA1_3 &&
1246- test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
1246+ test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
12471247 git fetch ../testrepo/.git $SHA1_1 &&
12481248 git --git-dir=../testrepo/.git config uploadpack.allowreachablesha1inwant true &&
12491249 git fetch ../testrepo/.git $SHA1_1 &&
12501250 git cat-file commit $SHA1_1 &&
12511251 test_must_fail git cat-file commit $SHA1_2 &&
12521252 git fetch ../testrepo/.git $SHA1_2 &&
12531253 git cat-file commit $SHA1_2 &&
1254- test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
1254+ test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
12551255 git fetch ../testrepo/.git $SHA1_3 2>err &&
12561256 test_i18ngrep "remote error:.*not our ref.*$SHA1_3\$" err
12571257 )
@@ -1291,7 +1291,7 @@ test_expect_success 'peeled advertisements are not considered ref tips' '
12911291 git -C testrepo commit --allow-empty -m two &&
12921292 git -C testrepo tag -m foo mytag HEAD^ &&
12931293 oid=$(git -C testrepo rev-parse mytag^{commit}) &&
1294- test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
1294+ test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
12951295 git fetch testrepo $oid 2>err &&
12961296 test_i18ngrep "Server does not allow request for unadvertised object" err
12971297'
0 commit comments