Skip to content

Commit e6c4309

Browse files
peffgitster
authored andcommitted
t5512: stop referring to "v1" protocol
There really isn't a "v1" Git protocol. It's just v0 with an extra probe which we used to test compatibility in preparation for v2. Any tests that are looking for before/after behavior for v2 really care about "v0". Mentioning "v1" in these tests is just making things more confusing, because we don't care about that probe; we're really testing v0. So let's say so. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aa962fe commit e6c4309

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t5512-ls-remote.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,17 +358,17 @@ test_expect_success 'ls-remote --sort fails gracefully outside repository' '
358358
test_expect_success 'ls-remote patterns work with all protocol versions' '
359359
git for-each-ref --format="%(objectname) %(refname)" \
360360
refs/heads/main refs/remotes/origin/main >expect &&
361-
git -c protocol.version=1 ls-remote . main >actual.v1 &&
362-
test_cmp expect actual.v1 &&
361+
git -c protocol.version=0 ls-remote . main >actual.v0 &&
362+
test_cmp expect actual.v0 &&
363363
git -c protocol.version=2 ls-remote . main >actual.v2 &&
364364
test_cmp expect actual.v2
365365
'
366366

367367
test_expect_success 'ls-remote prefixes work with all protocol versions' '
368368
git for-each-ref --format="%(objectname) %(refname)" \
369369
refs/heads/ refs/tags/ >expect &&
370-
git -c protocol.version=1 ls-remote --heads --tags . >actual.v1 &&
371-
test_cmp expect actual.v1 &&
370+
git -c protocol.version=0 ls-remote --heads --tags . >actual.v0 &&
371+
test_cmp expect actual.v0 &&
372372
git -c protocol.version=2 ls-remote --heads --tags . >actual.v2 &&
373373
test_cmp expect actual.v2
374374
'

0 commit comments

Comments
 (0)