t5606: run clone branch name test with protocol v2
commit5f70859c1534417f93c2edcdb96a71db80492388
authorJonathan Tan <jonathantanmy@google.com>
Wed, 17 Mar 2021 15:42:00 +0000 (17 08:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Mar 2021 18:19:36 +0000 (17 11:19 -0700)
tree7199954e5195e9abdda577915b07e3f22e2b9591
parent4f37d45706514a4b3d0259d26f719678a0cf3521
t5606: run clone branch name test with protocol v2

4f37d45706 ("clone: respect remote unborn HEAD", 2021-02-05) introduces
a new feature (if the remote has an unborn HEAD, e.g. when the remote
repository is empty, use it as the name of the branch) that only works
in protocol v2, but did not ensure that one of its tests always uses
protocol v2, and thus that test would fail if
GIT_TEST_PROTOCOL_VERSION=0 (or 1) is used. Therefore, add "-c
protocol.version=2" to the appropriate test.

(The rest of the tests from that commit have "-c protocol.version=2"
already added.)

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5606-clone-options.sh