@@ -171,6 +171,7 @@ test_expect_success 'fetching of missing objects' '
'
test_expect_success 'fetching of missing objects works with ref-in-want enabled' '
+ sane_unset GIT_TEST_PROTOCOL_VERSION &&
# ref-in-want requires protocol version 2
git -C server config protocol.version 2 &&
git -C server config uploadpack.allowrefinwant 1 &&
@@ -288,7 +288,7 @@ test_expect_success 'receive-pack de-dupes .have lines' '
$shared .have
EOF
- GIT_TRACE_PACKET=$(pwd)/trace \
+ GIT_TRACE_PACKET=$(pwd)/trace GIT_TEST_PROTOCOL_VERSION=0 \
git push \
--receive-pack="unset GIT_TRACE_PACKET; git-receive-pack" \
fork HEAD:foo &&
@@ -1172,6 +1172,7 @@ test_expect_success 'fetch exact SHA1' '
'
test_expect_success 'fetch exact SHA1 in protocol v2' '
+ sane_unset GIT_TEST_PROTOCOL_VERSION &&
mk_test testrepo heads/master hidden/one &&
git push testrepo master:refs/hidden/one &&
git -C testrepo config transfer.hiderefs refs/hidden &&
@@ -345,6 +345,7 @@ expect_ssh () {
}
test_expect_success 'clone myhost:src uses ssh' '
+ sane_unset GIT_TEST_PROTOCOL_VERSION &&
git clone myhost:src ssh-clone &&
expect_ssh myhost src
'
@@ -5,6 +5,7 @@ test_description='test git wire-protocol version 2'
TEST_NO_CREATE_REPO=1
. ./test-lib.sh
+sane_unset GIT_TEST_PROTOCOL_VERSION
# Test protocol v2 with 'git://' transport
#
A few tests are broken under GIT_TEST_PROTOCOL_VERSION=1, which as protocol.version in git-config(1) notes is just the GIT_TEST_PROTOCOL_VERSION=0 with a version number. All of these cases look OK to me, and don't seem to show any regressions or other behavior differences that are unexpected. These tests are either testing exact v0 trace output, or trying to test the v2 protocol. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/t0410-partial-clone.sh | 1 + t/t5400-send-pack.sh | 2 +- t/t5516-fetch-push.sh | 1 + t/t5601-clone.sh | 1 + t/t5702-protocol-v2.sh | 1 + 5 files changed, 5 insertions(+), 1 deletion(-)